Revision | 5d82fcf77a9b85c6d9d3a60aaa6ec58232c900f2 (tree) |
---|---|
Time | 2021-09-27 01:49:43 |
Author | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/2520 Remove spaces between heading text and dagger
@@ -995,12 +995,9 @@ class Body extends Element | ||
995 | 995 | } else { |
996 | 996 | $anchor = '&aname(' . $id . ',super,full,nouserselect){' . $_symbol_anchor . '};'; |
997 | 997 | } |
998 | - | |
999 | - $text = ' ' . $text; | |
1000 | - | |
998 | + $text = trim($text); | |
1001 | 999 | // Add 'page contents' link to its heading |
1002 | 1000 | $this->contents_last = & $this->contents_last->add(new Contents_UList($text, $level, $id)); |
1003 | - | |
1004 | 1001 | // Add heding |
1005 | 1002 | return array($text . $anchor, $this->count > 1 ? "\n" . $top : '', $autoid); |
1006 | 1003 | } |