diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index 8c6da5b8..51c944af 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -841,6 +841,12 @@ abstract class baseModule { if (isset($this->attributes[$attrName]) && (sizeof($this->attributes[$attrName]) > 0)) { natcasesort($this->attributes[$attrName]); $value = implode($delimiter, $this->attributes[$attrName]); + // TODO workarounds for PDF parser, remove when migrated to other PDF library + $value = str_replace("\r\n", " ", $value); + $value = str_replace("\n", " ", $value); + $value = str_replace("\r", " ", $value); + // TODO workaround for UFPDF, remove when migrated to other PDF library + $value = trim($value); } $result[get_class($this) . '_' . $name] = array('' . $label . '' . $value . ''); }