Thomas Keller 20c3f14cc8 git and hg diff views did not show empty context lines, a regression
from the commit(s) from issue 633. The diff parser assumed a properly
formatted diff that denotes empty context lines with a single space in
the first column. This single space however was missing, because the
hg and git backends got the diff through PHP's exec() function and
this returns already line-splitted output, but - and this is the actual
problem - removes trailing whitespace at the end of each line, essentially
making " \n" only "\n". When splitting this string now again with
PREG_SPLIT_NO_EMPTY the empty line was completely lost in the diff output.

To make it clear that an empty line does not mark a context line now, but
should stop the diff parsing, the Diff parser now also defaults to 'false'
as line type.

This commit fixes issue 688.
2011-06-02 00:48:38 +02:00
2011-04-02 21:37:07 +02:00
2011-03-30 00:13:50 +02:00
2011-04-11 15:37:40 +02:00
Description
No description provided
2.9 MiB
Languages
PHP 82%
HTML 14.8%
CSS 1.4%
JavaScript 0.5%
Lua 0.4%
Other 0.9%