[fbreader] Ignore AT-rules like @charset "utf-8";
This commit is contained in:
parent
883110810e
commit
bb587bd397
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2004-2010 Geometer Plus <contact@geometerplus.com>
|
||||
* Copyright (C) 2015-2017 Slava Monich <slava.monich@jolla.com>
|
||||
* Copyright (C) 2015-2018 Slava Monich <slava.monich@jolla.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -187,6 +187,11 @@ void StyleSheetParser::processChar4(char c) {
|
|||
}
|
||||
myWord.resize(0);
|
||||
break;
|
||||
case ';':
|
||||
// Probably AT-rule, e.g. @charset "utf-8";
|
||||
mySelectors.resize(0);
|
||||
myWord.resize(0);
|
||||
break;
|
||||
default:
|
||||
if (!isspace(c) || !myWord.empty()) {
|
||||
myWord.append(1, c);
|
||||
|
|
Loading…
Reference in a new issue