This commit is contained in:
EugeneTes
2026-01-23 12:57:01 +01:00
parent fcb192b797
commit 71300aab24
15 changed files with 811 additions and 658 deletions

View File

@@ -73,38 +73,38 @@ public class TemplateInterpreter
// Styled text - flush buffer, emit styled content, continue accumulating
case StyledTextNode styledNode:
FlushLineBuffer();
InterpretStyledText(styledNode, context, commands, style);
break;
// Block nodes - flush buffer first, then process
case SeparatorNode separatorNode:
FlushLineBuffer();
InterpretSeparator(separatorNode, commands, style);
break;
case EmptyLineNode:
case NewLineNode:
FlushLineBuffer();
commands.Add(CreateCommand(string.Empty, style));
break;
case IfNode ifNode:
FlushLineBuffer();
InterpretIf(ifNode, context, commands, style);
break;
case ForeachNode foreachNode:
FlushLineBuffer();
InterpretForeach(foreachNode, context, commands, style);
break;
case RowNode rowNode:
FlushLineBuffer();
InterpretRow(rowNode, context, commands, style);
break;
case ColumnNode columnNode:
FlushLineBuffer();
InterpretColumn(columnNode, context, commands, style);
break;
}