diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-05-07 12:07:49 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-05-07 12:07:49 +0200 |
commit | 8f6009db363f9978f22826a413bbd0f7f0ddd2f9 (patch) | |
tree | 8dddd49c73a1c41de0b311c1cf35df1fd6913abe /source | |
parent | 852eacf72cac2a988d511796680642cf692dcca4 (diff) | |
download | mupdf-8f6009db363f9978f22826a413bbd0f7f0ddd2f9.tar.xz |
epub: Whitespace separated by comments turn into two whitespace tokens.
Deal with it.
Diffstat (limited to 'source')
-rw-r--r-- | source/html/css-parse.c | 7 |
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); |