aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/htmlroff/t19.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/htmlroff/t19.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
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 <cross@gajendra.net>
Diffstat (limited to 'src/cmd/htmlroff/t19.c')
-rw-r--r--src/cmd/htmlroff/t19.c11
1 files changed, 5 insertions, 6 deletions
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());
}
-