Pull request #308: RED-3107 rs1
Merge in RED/redaction-service from RED-3107-rs1 to master * commit '7d75961df45de93cfb2a708b640703dbd5693f40': RED-3107: Missing headline for tables appears as inconsistent text in report RED-3106: Upgrade log4j to 2.16.0
This commit is contained in:
commit
98443f50ec
@ -210,9 +210,13 @@ public class SectionsBuilderService {
|
|||||||
|
|
||||||
if (previous != null && previous.getText().startsWith("Table ")) {
|
if (previous != null && previous.getText().startsWith("Table ")) {
|
||||||
table.setHeadline(previous.getText());
|
table.setHeadline(previous.getText());
|
||||||
|
} else {
|
||||||
|
if(lastHeadline == null || lastHeadline.isEmpty()) {
|
||||||
|
table.setHeadline("Text in table");
|
||||||
} else {
|
} else {
|
||||||
table.setHeadline("Table in: " + lastHeadline);
|
table.setHeadline("Table in: " + lastHeadline);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (textBlock != null && !alreadyAdded) {
|
if (textBlock != null && !alreadyAdded) {
|
||||||
paragraph.getPageBlocks().add(textBlock);
|
paragraph.getPageBlocks().add(textBlock);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user