From fa325e9b42b0bdfb48857d1958d9fb7ceac55151 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Fri, 10 Jan 2020 14:44:21 +0000 Subject: Trivial changes: whitespace and modes. Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross --- src/cmd/htmlroff/t19.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/cmd/htmlroff/t19.c') diff --git a/src/cmd/htmlroff/t19.c b/src/cmd/htmlroff/t19.c index a4cc18f4..bd633834 100644 --- a/src/cmd/htmlroff/t19.c +++ b/src/cmd/htmlroff/t19.c @@ -17,7 +17,7 @@ void r_nx(int argc, Rune **argv) { int n; - + if(argc == 1){ while(popinput()) ; @@ -74,7 +74,7 @@ r_inputpipe(Rune *name) Rune *cmd, *stop, *line; int n, pid, p[2], len; Waitmsg *w; - + USED(name); if(pipe(p) < 0){ warn("pipe: %r"); @@ -104,7 +104,7 @@ r_inputpipe(Rune *name) fprint(p[1], ".ll 8i\n"); fprint(p[1], ".pl 30i\n"); while((line = readline(~0)) != nil){ - if(runestrncmp(line, stop, len) == 0 + if(runestrncmp(line, stop, len) == 0 && (line[len]==' ' || line[len]==0 || line[len]=='\t' || (line[len]=='\\' && line[len+1]=='}'))) break; @@ -125,7 +125,7 @@ r_inputpipe(Rune *name) free(cmd); free(w); } -} +} void t19init(void) @@ -136,7 +136,6 @@ t19init(void) addraw(L("inputpipe"), r_inputpipe); addraw(L("pi"), r_pi); addreq(L("cf"), r_cf, 1); - + nr(L("$$"), getpid()); } - -- cgit v1.2.3