OSDN Git Service

BugTrack/2520 Remove spaces between heading text and dagger php81
authorumorigu <umorigu@gmail.com>
Sun, 26 Sep 2021 16:49:43 +0000 (01:49 +0900)
committerumorigu <umorigu@gmail.com>
Sun, 26 Sep 2021 16:49:43 +0000 (01:49 +0900)
lib/convert_html.php

index ae30b77..e173fdd 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);
        }