OSDN Git Service

BugTrack/2520 Remove spaces between heading text and dagger
[pukiwiki/pukiwiki.git] / lib / convert_html.php
index cab50aa..a6f50a7 100644 (file)
@@ -995,12 +995,9 @@ class Body extends Element
                } else {
                        $anchor = '&aname(' . $id . ',super,full,nouserselect){' . $_symbol_anchor . '};';
                }
-
-               $text = ' ' . $text;
-
+               $text = trim($text);
                // Add 'page contents' link to its heading
                $this->contents_last = & $this->contents_last->add(new Contents_UList($text, $level, $id));
-
                // Add heding
                return array($text . $anchor, $this->count > 1 ? "\n" . $top : '', $autoid);
        }