summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-04-07 19:54:10 +0200
committerAndreas Gohr <andi@splitbrain.org>2008-04-07 19:54:10 +0200
commit7e038d4e8843a5438c8eb8adce04e6ac7cb620cd (patch)
tree99ec9c180dcd287620fde7fb52e99d516973b68d /inc
parentfed467f88db0e15fbad58b2c769107589fbe9fd9 (diff)
downloadrpg-7e038d4e8843a5438c8eb8adce04e6ac7cb620cd.tar.gz
rpg-7e038d4e8843a5438c8eb8adce04e6ac7cb620cd.tar.bz2
Avoid double newlines on section edits FS#1221
darcs-hash:20080407175410-7ad00-4c782db8b3d806d8034140a2b3d7994f53b1e0fc.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/common.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php
index 687d2accd..ebacca92e 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -784,7 +784,8 @@ function con($pre,$text,$suf,$pretty=false){
if($suf && substr($text,-1) != "\n") $text .= "\n";
}
- if($pre) $pre .= "\n";
+ // Avoid double newline above section when saving section edit
+ //if($pre) $pre .= "\n";
if($suf) $text .= "\n";
return $pre.$text.$suf;
}