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:
6bcc667
)
fix paragraphs again
author
Erik Moeller
<erik@users.mediawiki.org>
Sat, 10 Apr 2004 06:50:49 +0000
(06:50 +0000)
committer
Erik Moeller
<erik@users.mediawiki.org>
Sat, 10 Apr 2004 06:50:49 +0000
(06:50 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
548f8ff
..
b5f6193
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-1113,15
+1113,7
@@
class Parser
}
} else {
$newSection = "p";
- if ( '' == trim($t) ) {
- if ( '' == trim($lastLine) ) {
- $text .= $this->closeParagraph();
- $text .= "<" . $newSection . "><br/>";
- $this->mLastSection = $newSection;
- } else {
- $t = '';
- }
- } else if ($this->mLastSection != $newSection) {
+ if ( ''==trim($t) && ( '' != trim($lastLine) )) {
$text .= $this->closeParagraph();
$text .= "<" . $newSection . ">";
$this->mLastSection = $newSection;