From 4fa8fa112b2b7c098b62bdaf51d3826eb4fa0929 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 14 Nov 2013 09:31:23 -0600 Subject: [PATCH] Fixup extra brackets on html2text footnote output --- include/html2text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/html2text.php b/include/html2text.php index 4efeada88..e8094c657 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)"; -- GitLab