mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
LibPDF: Tolerate comments before drawing operators
Necessary to be able to render https://github.com/pdf-association/pdf20examples/blob/master/pdf20-utf8-test.pdf
This commit is contained in:
parent
9e8cf4fc1a
commit
14bcb5219d
Notes:
sideshowbarker
2024-07-17 03:45:48 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/14bcb5219d Pull-request: https://github.com/SerenityOS/serenity/pull/22018
@ -530,6 +530,7 @@ PDFErrorOr<Vector<Operator>> Parser::parse_operators()
|
||||
m_reader.consume_whitespace();
|
||||
|
||||
while (!m_reader.done()) {
|
||||
parse_comment();
|
||||
auto ch = m_reader.peek();
|
||||
if (is_operator_char_start(ch)) {
|
||||
auto operator_start = m_reader.offset();
|
||||
|
Loading…
Reference in New Issue
Block a user