RED-3107: Missing headline for tables appears as inconsistent text in report
This commit is contained in:
parent
3c1f4b4853
commit
7d75961df4
@ -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