summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
Diffstat (limited to 'source/html')
-rw-r--r--source/html/css-parse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index 59d305d4..f2faef4a 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -495,7 +495,8 @@ static void expect(struct lexbuf *buf, int t)
static void white(struct lexbuf *buf)
{
- accept(buf, ' ');
+ while (buf->lookahead == ' ')
+ next(buf);
}
static int iscond(int t)
@@ -873,7 +874,10 @@ static void parse_at_rule(struct lexbuf *buf)
while (buf->lookahead != EOF)
{
if (accept(buf, ';'))
+ {
+ white(buf);
return;
+ }
if (accept(buf, '{'))
{
int depth = 1;
@@ -886,6 +890,7 @@ static void parse_at_rule(struct lexbuf *buf)
else
next(buf);
}
+ white(buf);
return;
}
next(buf);