T4: MarkdownRegistrySource test + fix isPersonTable check [checkpoint]

This commit is contained in:
Artur Kruszewski
2026-07-08 00:34:58 +02:00
parent bc4eaac8a4
commit 7f636a19fe
116 changed files with 355 additions and 44 deletions
@@ -138,8 +138,14 @@ public class MarkdownRegistrySource implements VoivodeshipSource {
if (rows.size() < 2) continue;
Elements headerCells = rows.get(0).select("th, td");
boolean isPersonTable = headerCells.stream().anyMatch(h ->
h.text().contains("Funkcja") && h.text().contains("Imię"));
boolean isPersonTable = headerCells.stream()
.map(Element::text)
.collect(java.util.stream.Collectors.joining(" "))
.contains("Funkcja") &&
headerCells.stream()
.map(Element::text)
.collect(java.util.stream.Collectors.joining(" "))
.contains("Imię");
if (!isPersonTable) continue;