mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibPDF: Allow text operator sequences to start with whitespace
This commit is contained in:
parent
7ecd420b03
commit
2f71e0f09a
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/janso3
Commit: 2f71e0f09a
Pull-request: https://github.com/SerenityOS/serenity/pull/15270
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/mattco98
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