From 631c53450426b3509ca0bbb878f69c686befe087 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 6 Dec 2025 11:41:53 +0000 Subject: [PATCH] Fix typo in warning message formatting in `QPDFParser.cc` and related test output --- libqpdf/QPDFParser.cc | 2 +- qpdf/qtest/qpdf/issue-150.out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libqpdf/QPDFParser.cc b/libqpdf/QPDFParser.cc index 464b0b5..6f53159 100644 --- a/libqpdf/QPDFParser.cc +++ b/libqpdf/QPDFParser.cc @@ -172,7 +172,7 @@ QPDFParser::parse(bool content_stream) } catch (std::logic_error& e) { throw e; } catch (std::exception& e) { - warn("treating object as null because of error during parsing : "s + e.what()); + warn("treating object as null because of error during parsing: "s + e.what()); return {}; } } diff --git a/qpdf/qtest/qpdf/issue-150.out b/qpdf/qtest/qpdf/issue-150.out index 0b1b9dc..ec5b082 100644 --- a/qpdf/qtest/qpdf/issue-150.out +++ b/qpdf/qtest/qpdf/issue-150.out @@ -1,5 +1,5 @@ WARNING: issue-150.pdf: can't find PDF header -WARNING: issue-150.pdf (xref stream: object 8 0, offset 56): treating object as null because of error during parsing : overflow/underflow converting 9900000000000000000 to 64-bit integer +WARNING: issue-150.pdf (xref stream: object 8 0, offset 56): treating object as null because of error during parsing: overflow/underflow converting 9900000000000000000 to 64-bit integer WARNING: issue-150.pdf: file is damaged WARNING: issue-150.pdf (offset 4): xref not found WARNING: issue-150.pdf: Attempting to reconstruct cross-reference table -- libgit2 0.21.4