Indentation isn't preserved in comments
Bug #76604 reported by
Gustavo Niemeyer
This bug report is a duplicate of:
Bug #2627: Non-leading whitespace mangled in bug description and comments.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Medium
|
Unassigned |
Bug Description
When a patch excerpt is pasted in a comment, the indentation of lines starting with +- is lost.
E.g:
def my_func():
print "This"
print "is"
print "right"
def my_func():
print "This"
- print "is"
+ print "broken"
Changed in malone: | |
status: | Unconfirmed → Confirmed |
To post a comment you must log in.
This is by design. We retain leading spaces by converting them to HTML non-breaking spaces. But if we did that for *all* spaces in descriptions and comments, that would make pages scroll horizontally in mobile browsers and other narrow windows, making Launchpad less usable overall.
Perhaps we need to switch back to showing bug descriptions and comments in a proportional font, like Trac does, to make it clearer that patches etc should be attached instead of being typed as comments.