dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3826b8
)
preserve newline before braced variables
author
Gabriel Wicke
<gwicke@users.mediawiki.org>
Wed, 12 May 2004 12:48:36 +0000
(12:48 +0000)
committer
Gabriel Wicke
<gwicke@users.mediawiki.org>
Wed, 12 May 2004 12:48:36 +0000
(12:48 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
79aa4e7
..
b49b49f
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-1508,6
+1508,7
@@
class Parser
# Run full parser on the included text
$text = $this->strip( $text, $this->mStripState );
$text = $this->internalParse( $text, (bool)$newline, $assocArgs );
+ if(!empty($newline)) $text = "\n".$text;
# Add the result to the strip state for re-inclusion after
# the rest of the processing