RED-7141: Readded lost mergeLinesInZones

This commit is contained in:
Dominique Eifländer 2024-03-12 13:42:40 +01:00
parent 0d3d25e7d7
commit 92fd1a72de
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ public class ZoneBuilderService {
List<Zone> zones = new ArrayList<>();
unionFind.getGroups().forEach(group -> {
zones.add(new Zone(new ArrayList<>(group)));
zones.add(mergeLinesInZone(new ArrayList<>(group), characterSpacing, lineSpacing));
});
if (zones.size() > MAX_ZONES) {

View File

@ -59,7 +59,7 @@ public class ViewerDocumentTest extends BuildDocumentTest {
new ImageServiceResponse(),
tableResponse,
new VisualLayoutParsingResponse(),
Map.of("file",Path.of(fileName).getFileName().toFile().toString()));
Map.of("file", Path.of(fileName).getFileName().toFile().toString()));
ViewerDocumentService viewerDocumentService = new ViewerDocumentService(null);
LayoutGridService layoutGridService = new LayoutGridService(viewerDocumentService);
Document document = DocumentGraphFactory.buildDocumentGraph(LayoutParsingType.DOCUMINE, classificationDocument);