diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-10-31 20:57:58 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-10-31 20:57:58 +0100 |
commit | 854b855a22e61237c20efd5bc38f1c91eba7e19c (patch) | |
tree | ea1c2a9f786ffa9c8cf508d18d1e333ad3412506 /index.php | |
parent | f0fb5945f064ea99c457a56b6cb3973b9c94d66c (diff) |
Fix broken <span> at beginning of highlighted diff
If a regex matches on lines that begin with a space, it will create a
<span> tag directly at teh beginning of the code. The return statment
removes the first char which in this case will be "<" so the html tag
will be broken and there will be a left over space.
If we don't add the space in the first place, we don't have to remove
it.
This looks like some crazy workaround, so it might cause problems to
appear.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'index.php')
0 files changed, 0 insertions, 0 deletions