summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2009-01-20 14:15:08 +0100
committerAndreas Gohr <gohr@cosmocode.de>2009-01-20 14:15:08 +0100
commitbdd8111b81ffd9c4f9b8cdbb8075c7088bbcf230 (patch)
tree8cc64b1285eafe5872794ce8bb44cb1940643850 /inc/parser
parentf99fbb647b842927fe69fd7661e9e919a10182cb (diff)
downloadrpg-bdd8111b81ffd9c4f9b8cdbb8075c7088bbcf230.tar.gz
rpg-bdd8111b81ffd9c4f9b8cdbb8075c7088bbcf230.tar.bz2
no H1 tags for empty headlines
darcs-hash:20090120131508-6e07b-a3354fe34f9c54f06a968c6685a04955a8c5a94e.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 2b9e30b98..3ef51a7b3 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -104,6 +104,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
}
function header($text, $level, $pos) {
+ if(!$text) return; //skip empty headlines
$hid = $this->_headerToLink($text,true);