From 8f4eb9fc953512365f9258ffd5d11ed8950f77a9 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Tue, 13 Jun 2023 01:23:42 -0700 Subject: added indentation support for |as rule --- operetta.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'operetta.c') diff --git a/operetta.c b/operetta.c index f399093..2c4f555 100644 --- a/operetta.c +++ b/operetta.c @@ -12,6 +12,9 @@ int main(int argc, char** argv) { int lineCount = count_lines(content); lineSet_t lines = parse_lines(content, lineCount); for (int i = 0; i < lines.count; i++) { + for (int j = 0; j < lines.lines[i].aLevel; j++) { + printf(" > "); + } write_prop(lines.lines[i].proposition); printf(" BECAUSE: "); write_just(lines.lines[i].justification); -- cgit v1.3.1