Description:-field misparses lists and may drop initial characters

Bug #708684 reported by Paul Sladen on 2011-01-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
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.

Paul Sladen (sladen) wrote :
Kiwinote (kiwinote) wrote :

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-controlfields.html#s-f-Description

Changed in software-center (Ubuntu):
assignee: nobody → Kiwinote (kiwinote)
importance: Undecided → Low
status: New → Fix Committed
Paul Sladen (sladen) wrote :

Kiwi: thanks for fix, and fixing out the bullet issue too: I'll add an extra pair of spaces when the next upload happens.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 3.1.14

---------------
software-center (3.1.14) natty; urgency=low

  [ Michael Vogt ]
  * utils/submit_review.py:
    - fix visual glitch with the gwibber combo on long usernames
      (thanks to davmor2 for reporting)
  * debian/control:
    - make python-piston-mini-client a hard depenency again
  * softwarecenter/view/softwarepane.py:
    - fix race if details page is clicked before the installed pane
      is fully created (thanks to seb128)

  [ Kiwinote ]
  * data/ui/report_abuse.ui,
    data/ui/submit_review.ui,
    utils/submit_review.py:
    - use a consistent 12px padding around all sides of the dialogs
  * softwarecenter/apt/aptcache.py,
    softwarecenter/db/reviews.py,
    softwarecenter/view/appdetailsview.py:
    - don't allow to review pkgs without origins
  * softwarecenter/db/reviews.py:
    - show Blender reviews (courtesy of mvo)
  * softwarecenter/view/appdetailsview_gtk:
    - don't eat description characters (LP: #708684)
 -- Michael Vogt <email address hidden> Fri, 28 Jan 2011 20:13:00 +0100

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers