diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-03-23 11:00:20 +0100 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-03-23 12:08:14 +0100 |
commit | 80fcb26867ee7f89b0c1e7db9c9e59dc4c9aeb58 (patch) | |
tree | ec50d5fb47af025514d3d15d1d1283692e71170d /inc/parserutils.php | |
parent | cf5b435169f81ea7da106ced2c6401bf83ac199f (diff) | |
download | rpg-80fcb26867ee7f89b0c1e7db9c9e59dc4c9aeb58.tar.gz rpg-80fcb26867ee7f89b0c1e7db9c9e59dc4c9aeb58.tar.bz2 |
Rewrite wikitext slicing for section edits
This commit adresses two issues:
* rawWikiSlices used to drop the first byte of the suffix (usually a newline,
but custom section edits may not be bound to newlines)
* con used to insert way too much newlines: the newline that got
dropped by the bug in rawWikiSlices and one additional newline in prefix
and text each if they are not terminated by a newline. Now con only inserts
newlines if there are absolutely no newlines between prefix and text and
text and suffix.
Diffstat (limited to 'inc/parserutils.php')
0 files changed, 0 insertions, 0 deletions