mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
fix for pdf generation and \r\n in description
This commit is contained in:
parent
c72f9fbdb1
commit
de703531f6
@ -200,7 +200,7 @@ public class PdfUtil {
|
||||
.addText("Created by " + documentDto.getCreator()
|
||||
+ " on " + dateFormat.format(new Date(documentDto.getCreateTimestamp())), true)
|
||||
.newLine()
|
||||
.addText(documentDto.getDescription())
|
||||
.addText(Strings.nullToEmpty(documentDto.getDescription()).replaceAll("[\r\n]", ""))
|
||||
.newLine();
|
||||
if (!Strings.isNullOrEmpty(documentDto.getSubject())) {
|
||||
pdfPage.addText("Subject: " + documentDto.getSubject());
|
||||
|
Loading…
Reference in New Issue
Block a user