gerrit/gerrit-prettify
Shawn O. Pearce 71b04c00b1 Handle bare CR in the middle of a line
Prettify converts a bare CR in the middle of a line of text into a
<br/>, which we later convert back into an LF.  This skews all of the
line numbers through the rest of the file, resulting in a confusing
situation (due to the unexpected LF) as we try to map the formatted
HTML back into the SparseFileContent object we use for rendering.

Highlight bare CRs as spaces with whitespace error spans around them,
before we feed the text into prettify.  This ensures we won't get
back more lines than we fed in, so our formatting is still correct.

Change-Id: Ib2dc8b024a2211601a588fd0552c4963d5b6e028
Signed-off-by: Shawn O. Pearce <sop@google.com>
2010-03-09 18:46:05 -08:00
..
.settings Run prettify on the server using whole file contents 2010-01-30 16:12:29 -08:00
src/main Handle bare CR in the middle of a line 2010-03-09 18:46:05 -08:00
.gitignore Run prettify on the server using whole file contents 2010-01-30 16:12:29 -08:00
pom.xml Remove Mozilla Rhino from our build 2010-02-16 12:17:33 -08:00