1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

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
parent 7ecd420b03
commit 2f71e0f09a

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