Skip to content
Snippets Groups Projects
Commit 4fa8fa11 authored by Jared Hancock's avatar Jared Hancock
Browse files

Fixup extra brackets on html2text footnote output

parent dbfed202
No related branches found
No related tags found
No related merge requests found
......@@ -423,9 +423,9 @@ class HtmlAElement extends HtmlInlineElement {
$output = "[$output]";
}
} elseif (strlen($href) > $width / 2) {
$output = "[$output][]";
if ($href != $output)
$this->getRoot()->addFootnote($output, $href);
$output = "[$output]";
} else {
if ($href != $output) {
$output = "[$output]($href)";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment