diff --git a/include/html2text.php b/include/html2text.php index 4efeada88363321df825b2227b239b977d3c7cd1..e8094c6570ddbb92218c0a6239ca8632f87bcbbc 100644 --- a/include/html2text.php +++ b/include/html2text.php @@ -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)";