mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibPDF: Allow text operator sequences to start with whitespace
This commit is contained in:
parent
7ecd420b03
commit
2f71e0f09a
1 changed files with 2 additions and 0 deletions
|
@ -496,6 +496,8 @@ PDFErrorOr<Vector<Operator>> Parser::parse_operators()
|
|||
return isalpha(ch) || ch == '*' || ch == '\'';
|
||||
};
|
||||
|
||||
m_reader.consume_whitespace();
|
||||
|
||||
while (!m_reader.done()) {
|
||||
auto ch = m_reader.peek();
|
||||
if (is_operator_char(ch)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue