Templating: TEXT mit w= für zentrierte und rechtsbündige Zeilen
CI / build-and-test (push) Canceled after 0s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Sonnet 5.5 committed 2026-10-07 23:04:46 +02:00
1 parent 98c5f9eba0
commit d1f3dd5148
4 files changed
+52 -2

No files matched your search

+3 -1
View File
@@ -123,9 +123,11 @@ public sealed class LayoutParser
Require(tokens, flowText ? 2 : 4);
var textContent = tokens[flowText ? 1 : 3];
var textRef = Reference(textContent);
var textAttributes = Attributes(tokens, flowText ? 2 : 4);
if (textAttributes.ContainsKey("w")) RequiredPositiveNumber(textAttributes, "w");
parsedElement = new TextElement(lineNumber, flowText ? 0 : Number(tokens[1]),
flowText ? 0 : Number(tokens[2]), textContent, textRef.Name, textRef.Format,
Attributes(tokens, flowText ? 2 : 4)); break;
textAttributes); break;
case "TEXTBOX":
var flowBox = currentFlowName is not null;
Require(tokens, flowBox ? 2 : 6);