aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/htmlroff/t1.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/t1.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/t1.c')
-rw-r--r--src/cmd/htmlroff/t1.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/cmd/htmlroff/t1.c b/src/cmd/htmlroff/t1.c
index 8236694d..c68ada77 100644
--- a/src/cmd/htmlroff/t1.c
+++ b/src/cmd/htmlroff/t1.c
@@ -1,5 +1,5 @@
#include "a.h"
-
+
/*
* Section 1 - General Explanation.
*/
@@ -10,7 +10,7 @@ int
scale2units(char c)
{
int x;
-
+
switch(c){
case 'i': /* inch */
return UPI;
@@ -49,7 +49,7 @@ long
runestrtol(Rune *a, Rune **p)
{
long n;
-
+
n = 0;
while('0' <= *a && *a <= '9'){
n = n*10 + *a-'0';
@@ -111,7 +111,7 @@ eval0(Rune **pline, int scale, int recur)
*pline = p;
return x;
}
-
+
while(*p){
switch(*p++) {
case '+':
@@ -176,11 +176,10 @@ void
t1init(void)
{
Tm tm;
-
+
tm = *localtime(time(0));
nr(L("dw"), tm.wday+1);
nr(L("dy"), tm.mday);
nr(L("mo"), tm.mon);
nr(L("yr"), tm.year%100);
}
-