fmt:email-to-html may wrongly identify quoted passages as Python

Bug #132263 reported by Curtis Hovey
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Won't Fix
Low
Unassigned

Bug Description

Passages of may be wrongly be interpreted as Python because they start with '>>> '. The function does not check that next and previous lines of text consistently uses '>>> ' as Python would.

The function could examine the context or a line, or process paragraphs the whole paragraph with a multiline regexp, but that would be slower than the current approach.

Revision history for this message
Stuart Bishop (stub) wrote :

Python also uses '... ' as well as '>>> ' in the interactive interpreter output.

Curtis Hovey (sinzui)
tags: added: tech-debt
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
Curtis Hovey (sinzui)
tags: added: tales
affects: launchpad-foundations → launchpad-web
Revision history for this message
Curtis Hovey (sinzui) wrote :

While this was an issue discovered in testing. It is not a issue for Lp users.

Changed in launchpad:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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