Added missing line break replacement when the values do not contain html tags

This commit is contained in:
Tim Otte 2020-03-05 09:41:22 +01:00
parent 6b3fdfbcd8
commit 1472a24371

View File

@ -179,7 +179,7 @@ class Odf
} }
$this->contentXml = str_replace('</office:font-face-decls>', $fonts . '</office:font-face-decls>', $this->contentXml); $this->contentXml = str_replace('</office:font-face-decls>', $fonts . '</office:font-face-decls>', $this->contentXml);
} }
else $this->vars[$tag] = $value; else $this->vars[$tag] = preg_replace('/(\r\n|\r|\n)/i', "<text:line-break/>", $value);
return $this; return $this;
} }