mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-06 22:23:10 +07:00
fix for pdf generation and \r\n in description
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user