From 7e038d4e8843a5438c8eb8adce04e6ac7cb620cd Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Mon, 7 Apr 2008 19:54:10 +0200 Subject: [PATCH] Avoid double newlines on section edits FS#1221 darcs-hash:20080407175410-7ad00-4c782db8b3d806d8034140a2b3d7994f53b1e0fc.gz --- inc/common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- GitLab