LibPDF: Allow text operator sequences to start with whitespace

This commit is contained in:
Julian Offenhäuser 2022-08-25 10:33:07 +02:00 committed by Andreas Kling
commit 2f71e0f09a
Notes: sideshowbarker 2024-07-17 22:41:14 +09:00

View file

@ -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)) {