mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 22:07:56 +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()
|
.addText("Created by " + documentDto.getCreator()
|
||||||
+ " on " + dateFormat.format(new Date(documentDto.getCreateTimestamp())), true)
|
+ " on " + dateFormat.format(new Date(documentDto.getCreateTimestamp())), true)
|
||||||
.newLine()
|
.newLine()
|
||||||
.addText(documentDto.getDescription())
|
.addText(Strings.nullToEmpty(documentDto.getDescription()).replaceAll("[\r\n]", ""))
|
||||||
.newLine();
|
.newLine();
|
||||||
if (!Strings.isNullOrEmpty(documentDto.getSubject())) {
|
if (!Strings.isNullOrEmpty(documentDto.getSubject())) {
|
||||||
pdfPage.addText("Subject: " + documentDto.getSubject());
|
pdfPage.addText("Subject: " + documentDto.getSubject());
|
||||||
|
Loading…
Reference in New Issue
Block a user