Description:-field misparses lists and may drop initial characters
Bug #708684 reported by
Paul Sladen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
Low
|
Kiwinote |
Bug Description
Binary package hint: software-center
Software Centre displays the package Description: field to the user. In doing so, the parser does strange things when hitting list items indents with '*' at the start of the line (pseudo bullet point), and may also drop initial letters.
The attached screenshot shows an initial "In" being dropped from the word "Included" and a half-formatted list; the input is the following:
Description: Light Themes (Ambiance and Radiance)
Includes matching Ambiance and Radiance themes
.
* Ambiance is a light-on-dark theme
* Radiance is a dark-on-light theme
.
Introduced as the default themes in Ubuntu 10.04 LTS.
Related branches
lp:~kiwinote/software-center/tweaks
(Merged)
To post a comment you must log in.
Hi Paul! Thanks for the bug report. I've made a slight tweak to the code such that paragraph detections now works correctly for light-themes. I've attached a screenshot of what it currently looks like. As for the absence of the second bullet point - I've had a quick look at the debian policy for the description field [0] - it states: "Lines starting with a single space are part of a paragraph. Successive lines of this form will be word-wrapped when displayed." This means that lines starting with a bullet point must start with 2 spaces, so it would seem that this needs to be fixed in the light-themes package itself. Please continue to report any bugs you may find in software-center. Thanks again for your help!
[0] http:// www.debian. org/doc/ debian- policy/ ch-controlfield s.html# s-f-Description