OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0158485
)
BugTrack/2520 Remove spaces between heading text and dagger
php81
author
umorigu
<umorigu@gmail.com>
Sun, 26 Sep 2021 16:49:43 +0000
(
01:49
+0900)
committer
umorigu
<umorigu@gmail.com>
Sun, 26 Sep 2021 16:49:43 +0000
(
01:49
+0900)
lib/convert_html.php
patch
|
blob
|
history
diff --git
a/lib/convert_html.php
b/lib/convert_html.php
index
ae30b77
..
e173fdd
100644
(file)
--- a/
lib/convert_html.php
+++ b/
lib/convert_html.php
@@
-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);
}