mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
LibPDF: Allow whitespace other than EOL after an object marker
This commit is contained in:
committed by
Sam Atkins
parent
65e83bed53
commit
633e1632d0
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user