aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/htmlroff/t10.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/t10.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/t10.c')
-rw-r--r--src/cmd/htmlroff/t10.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cmd/htmlroff/t10.c b/src/cmd/htmlroff/t10.c
index 4aa74532..64d63f41 100644
--- a/src/cmd/htmlroff/t10.c
+++ b/src/cmd/htmlroff/t10.c
@@ -58,7 +58,7 @@ int
e_bang(void)
{
Rune *line;
-
+
line = readline(CopyMode);
out(line);
outrune('\n');
@@ -70,7 +70,7 @@ int
e_X(void)
{
int c, c1;
-
+
c1 = getrune();
if(c1 < 0 || c1 == '\n') {
c = c1;
@@ -119,7 +119,7 @@ void
r_comment(Rune *name)
{
int c;
-
+
USED(name);
while((c = getrune()) >= 0 && c != '\n')
;
@@ -136,11 +136,10 @@ t10init(void)
addreq(L("tr"), r_warn, -1);
addreq(L("ul"), r_nop, -1);
addraw(L("\\\""), r_comment);
-
+
addesc('!', e_bang, 0);
addesc('X', e_X, 0);
addesc('\"', e_quote, CopyMode|ArgMode);
addesc('\n', e_newline, CopyMode|ArgMode|HtmlMode);
addesc('e', e_e, 0);
}
-