From 439a32aa0467c9d125defeeb04f57051229db5bd Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 30 Jan 2014 12:43:27 -0600 Subject: [PATCH] html2text: Drop border around <pre> elements Until we add text/plain bodies to the ticket thread without an enclosing <pre> element, we should not treat the <pre> element like a code or blockquote block. --- include/html2text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/html2text.php b/include/html2text.php index 322342fe0..c44997614 100644 --- a/include/html2text.php +++ b/include/html2text.php @@ -49,7 +49,7 @@ function convert_html_to_text($html, $width=74) { HtmlStylesheet::fromArray(array( 'html' => array('white-space' => 'pre'), # Don't wrap footnotes 'p' => array('margin-bottom' => '1em'), - 'pre' => array('border-width' => '1em', 'white-space' => 'pre'), + 'pre' => array('white-space' => 'pre'), )) ); $options = array(); -- GitLab