Comment 2 for bug 76604

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote : Re: Indentation isn't preserved for patches

We include diff excerpts in comments, while discussing a change being proposed. It doesn't
make sense to attach that kind of comment. Making it clear that Launchpad doesn't support
pre-formatted text in comments is making it clear that it lacks a feature pretty much every
other issue tracker in the market offers.

I could argue that preserving spaces is even more important than mobile browsers, since it's a
more common usability problem to the market Launchpad is targeting, but we don't have to
discuss this. I'm sure there are ways to prevent the usability bug described above without
sacrificing the other kind of usability you're after.

A few suggestions:

1. Convert any sequence of spaces where n > 1 to   and on n == 1, preserve it as
a normal space, thus introducing a breaking point. The principle here is: why would someone
enter more than one space in sequence in a text area if it wasn't supposed to be preserved?

2. Introduce breakable spaces between unbreakable spaces.

Check http://labix.org/tmp/break-me.html for an example.