mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:25:08 +00:00
LibPDF: Allow whitespace other than EOL after an object marker
This commit is contained in:
parent
65e83bed53
commit
633e1632d0
1 changed files with 1 additions and 2 deletions
|
@ -139,8 +139,7 @@ PDFErrorOr<NonnullRefPtr<IndirectValue>> Parser::parse_indirect_value(u32 index,
|
|||
if (!m_reader.matches("obj"))
|
||||
return error("Expected \"obj\" at beginning of indirect value");
|
||||
m_reader.move_by(3);
|
||||
if (m_reader.matches_eol())
|
||||
m_reader.consume_eol();
|
||||
m_reader.consume_whitespace();
|
||||
|
||||
push_reference({ index, generation });
|
||||
auto value = TRY(parse_value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue