Cannot format descriptions

Bug #30002 reported by Kevin Cole
118
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

There is no obvious way to add links or other formatted text in description fields. (This relates to the problem with very long URL's becoming ugly.)

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Among other things, this would involve deciding on a safe subset of HTML, advertising that safe subset in the Web forms, converting the HTML to plain text when e-mailing people about bug reports, and mysteriously losing the HTML as a result when people tweaked the description via e-mail. So it's probably not a good idea.

How about we print "Plain text only, URLs will be auto-linked" in fine print under each description/comment form?

Dafydd Harries (daf)
Changed in launchpad:
status: Unconfirmed → Needs Info
Revision history for this message
Kevin Cole (kjcole) wrote :

Good point regarding the security... So, this can probably go from "Incomplete" to some other status...

Changed in launchpad:
status: Incomplete → Confirmed
Revision history for this message
Daniel Schierbeck (dasch) wrote :

I suggest using Markdown syntax -- it's easier to maintain in the database, and you have greater control over styling.

Revision history for this message
Umang Varma (umang) wrote : Re: Cannot add HTML markup (or other formatting) in descriptions

Markdown is a great idea.

Also, this may not be required, but you could look at it:
http://htmlpurifier.org/

Revision history for this message
Christophe Simonis (OpenERP) (kangol) wrote :

I propose GitFlavoredMarkdown: http://github.github.com/github-flavored-markdown/

rst is also an alternative: http://docutils.sourceforge.net/rst.html

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Markdown or wiki-type syntaxes are basically the linga franca of basic markupping these days, and there are plenty of battle-tested libraries which should be available.

Finally being able to correctly format bug descriptions (and comments as well) would be a very nice addition.

Jonathan Lange (jml)
affects: launchpad-foundations → launchpad-web
Changed in launchpad-web:
status: Triaged → Incomplete
Revision history for this message
Yves Piguet (yves-piguet) wrote :

Or NME (Creole) for a project hosted here, wiki syntax with many output formats including HTML and plain text: https://launchpad.net/nme/

Revision history for this message
Yura Taras (ytaras) wrote :

I agree that markdown syntax will be the best, as it will be familiar thing for GitHub uses.

Revision history for this message
Josh Brown (joshbrown) wrote :

I think GitHub Flavored Markdown is a good idea.

summary: - Cannot add HTML markup (or other formatting) in descriptions
+ Cannot format descriptions
Changed in launchpad:
status: Incomplete → Triaged
Revision history for this message
Robert Collins (lifeless) wrote :

Triaging to reflect that this isn't currently scheduled nor likely to be for a while. We'd definitely love a patch if someone is particularly keen on it. I suggest discussing the exact implementation here, or on the -dev list before putting a lot of time in.

Changed in launchpad:
importance: Medium → Low
Revision history for this message
Forest (foresto) wrote :

In addition to bug descriptions, PPA descriptions could benefit from some basic text formatting.

Markdown is a good choice not only because it's familiar, but also because it's perfectly readable as plain text. No reverse conversion would be necessary for email.

Revision history for this message
dmoore (damien-moore) wrote :

Six year old bug, FFS! Surely this isn't rocket science.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.