From 1472a2437163726eb27e61879218149abe1c9e0b Mon Sep 17 00:00:00 2001 From: Tim Otte Date: Thu, 5 Mar 2020 09:41:22 +0100 Subject: [PATCH] Added missing line break replacement when the values do not contain html tags --- htdocs/includes/odtphp/odf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/includes/odtphp/odf.php b/htdocs/includes/odtphp/odf.php index b2a93305430..79e2646ad32 100644 --- a/htdocs/includes/odtphp/odf.php +++ b/htdocs/includes/odtphp/odf.php @@ -179,7 +179,7 @@ class Odf } $this->contentXml = str_replace('', $fonts . '', $this->contentXml); } - else $this->vars[$tag] = $value; + else $this->vars[$tag] = preg_replace('/(\r\n|\r|\n)/i', "", $value); return $this; }