New formatter for presenting package descriptions

Bug #88803 reported by Matthew Paul Thomas
12
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

Debian-style package descriptions are not quite plain text. <http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description>

As a result, /fmt:text-to-html on a package description produces results that include stray periods and too many line breaks. <https://beta.launchpad.net/ubuntu/feisty/i386/sqcwa/0.3-3>

Therefore, there should be a /fmt:package-description-to-html or similar that takes into account the Debian control field rules. A straw-man algorithm:
1. replace "\n .\n" with "\n\n"
2. replace "\n .<EOF>" with ""
3. replace "\n " with ""
4. call the /fmt:text-to-html code.

Tags: lp-web tales
Revision history for this message
Kees Cook (kees) wrote :

Any chance this could be quickly fixed? I'd like to see the descriptions cleaned up before linking to them from USNs.

Changed in launchpad-foundations:
status: New → Confirmed
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Confirmed → Triaged
importance: Undecided → Low
Curtis Hovey (sinzui)
tags: added: tales
Curtis Hovey (sinzui)
affects: launchpad-foundations → launchpad-web
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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