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:
05aa666
)
now pre for real
author
Gabriel Wicke
<gwicke@users.mediawiki.org>
Sat, 10 Apr 2004 03:09:52 +0000
(
03:09
+0000)
committer
Gabriel Wicke
<gwicke@users.mediawiki.org>
Sat, 10 Apr 2004 03:09:52 +0000
(
03:09
+0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
5ba1201
..
1bec4ab
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-1105,9
+1105,11
@@
class Parser
} else if ( !$inBlockElem ) {
if ( " " == $t{0} ) {
$newSection = "pre";
- $text .= $this->closeParagraph();
- $text .= "<" . $newSection . ">";
- $this->mLastSection = $newSection;
+ if ($this->mLastSection != 'pre') {
+ $text .= $this->closeParagraph();
+ $text .= "<" . $newSection . ">";
+ $this->mLastSection = $newSection;
+ }
} else {
$newSection = "p";
if ( '' == trim($t) ) {