summaryrefslogtreecommitdiffstats
path: root/hc.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-10-05 21:50:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2013-10-05 21:50:48 -0700
commit205cd4b3427c5569af071f08d6078a8f021c6f82 (patch)
tree25c47bc29a2bf5f8b1668f4e9fb763791d734e0a /hc.c
parent062dad140adeeb2cf2a3fc3a30796e180a995980 (diff)
downloadhc-205cd4b3427c5569af071f08d6078a8f021c6f82.tar.gz
hc-205cd4b3427c5569af071f08d6078a8f021c6f82.tar.bz2
hc-205cd4b3427c5569af071f08d6078a8f021c6f82.zip
Bugfixes.
Diffstat (limited to 'hc.c')
-rw-r--r--hc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hc.c b/hc.c
index 2642bfa..86b9594 100644
--- a/hc.c
+++ b/hc.c
@@ -121,7 +121,7 @@ static int allowed_attr(token_t el, token_t at)
return 0;
}
-static void parse_attr(token_t el)
+static void parse_attrs(token_t el)
{
for (;;) {
token_t ws0 = optmatch(tok_wsp);
@@ -136,10 +136,6 @@ static void parse_attr(token_t el)
deltok(printtok(end));
deltok(printtok(close));
break;
- }
-
- if (null(ws0)) {
- bail();
} else {
token_t at = gettok();
token_t ws1 = optmatch(tok_wsp);
@@ -207,7 +203,7 @@ static void parse_element(token_t in)
printtok(in);
printtok(end);
printtok(name);
- parse_attr(name);
+ parse_attrs(name);
} else {
deltok(lookfor('>'));
}