summaryrefslogtreecommitdiff
path: root/operetta.c
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-06-13 01:23:42 -0700
committerKai Stevenson <kai@kaistevenson.com>2023-06-13 01:23:42 -0700
commit8f4eb9fc953512365f9258ffd5d11ed8950f77a9 (patch)
tree113ac7d09640e97fa678f098809b20b63c310286 /operetta.c
parent3bd120957d570756d396db8a112113f2ffb8f33b (diff)
added indentation support for |as rule
Diffstat (limited to 'operetta.c')
-rw-r--r--operetta.c3
1 files changed, 3 insertions, 0 deletions
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);