LibPDF: Allow numbers to start with whitespace
This commit is contained in:
parent
ab57fde8ec
commit
a37f3390dc
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/janso3 Commit: https://github.com/SerenityOS/serenity/commit/a37f3390dc Pull-request: https://github.com/SerenityOS/serenity/pull/16933 Reviewed-by: https://github.com/nico
1 changed files with 2 additions and 0 deletions
|
@ -170,6 +170,8 @@ PDFErrorOr<NonnullRefPtr<IndirectValue>> Parser::parse_indirect_value()
|
|||
|
||||
PDFErrorOr<Value> Parser::parse_number()
|
||||
{
|
||||
m_reader.consume_whitespace();
|
||||
|
||||
size_t start_offset = m_reader.offset();
|
||||
bool is_float = false;
|
||||
bool consumed_digit = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue