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; }