From 14ef2b38397f9004c7baa54d320e9bac89610849 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 10 Dec 2017 12:08:18 -0500 Subject: [PATCH] Fix indentation bugs --- README.md | 4 ++++ src/main.c | 5 +++-- diff --git a/README.md b/README.md index afecd2d040f8f35923d89be55c4b9128f482beef..bbed786739f3ca7b7a903e09f49a7b0d0e37621d 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,10 @@ make PREFIX=/usr sudo make PREFIX=/usr install +## Usage + +See scdoc(1) + ## Contributing Send patches/bug reports to sir@cmpwn.com diff --git a/src/main.c b/src/main.c index e50b1d1e4a8ecd3d575c8220386546f1cb189f10..bede16439a577cd995d4ca578412dfb9efcdd5da 100644 --- a/src/main.c +++ b/src/main.c @@ -171,8 +171,8 @@ roff_macro(p, "RS", "4", NULL); } else if (i != *indent && ch == '\t') { parser_fatal(p, "Indented by an amount greater than 1"); } - *indent = i; } + *indent = i; return i; } @@ -220,9 +220,10 @@ break; default: fprintf(p->output, "\n"); parser_pushch(p, ch); - return; + goto ret; } } while (ch != UTF8_INVALID); +ret: if (!closed) { roff_macro(p, "RE", NULL); } -- 2.48.1