summaryrefslogtreecommitdiff
path: root/inc/parser/xhtml.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/xhtml.php')
-rw-r--r--inc/parser/xhtml.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index d9c750220..31246125b 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -132,9 +132,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$this->lastsec = $pos;
}
- $this->doc .= DOKU_LF.'<a name="'.$this->_headerToLink($text).'" id="'.$this->_headerToLink($text).'"></a><h'.$level.'>';
+ $this->doc .= DOKU_LF.'<h'.$level.'><a name="'.$this->_headerToLink($text).'" id="'.$this->_headerToLink($text).'">';
$this->doc .= $this->_xmlEntities($text);
- $this->doc .= "</h$level>".DOKU_LF;
+ $this->doc .= "</a></h$level>".DOKU_LF;
}
function section_open($level) {