From 3c5700c255f4603b5df9c6d183d13dd71a083cc3 Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 27 May 2023 18:19:52 +0100 Subject: Code tidy - reflow comments and strings --- examples/pdf-bookmarks.cc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'examples/pdf-bookmarks.cc') diff --git a/examples/pdf-bookmarks.cc b/examples/pdf-bookmarks.cc index d40ded6a..9581a135 100644 --- a/examples/pdf-bookmarks.cc +++ b/examples/pdf-bookmarks.cc @@ -8,9 +8,9 @@ #include #include -// This program demonstrates extraction of bookmarks using the qpdf -// outlines API. Note that all the information shown by this program -// can also be obtained from a PDF file using qpdf's --json option. +// This program demonstrates extraction of bookmarks using the qpdf outlines API. Note that all the +// information shown by this program can also be obtained from a PDF file using qpdf's --json +// option. // // Ignore calls to QTC::TC - they are for qpdf CI testing only. @@ -118,11 +118,10 @@ show_bookmark_details(QPDFOutlineObjectHelper outline, std::vector numbers) void extract_bookmarks(std::vector outlines, std::vector& numbers) { - // For style == st_numbers, numbers.at(n) contains the numerical - // label for the outline, so we count up from 1. - // For style == st_lines, numbers.at(n) == 0 indicates the last - // outline at level n, and we don't otherwise care what the value - // is, so we count up to zero. + // For style == st_numbers, numbers.at(n) contains the numerical label for the outline, so we + // count up from 1. + // For style == st_lines, numbers.at(n) == 0 indicates the last outline at level n, and we don't + // otherwise care what the value is, so we count up to zero. numbers.push_back((style == st_lines) ? -QIntC::to_int(outlines.size()) : 0); for (auto& outline: outlines) { ++(numbers.back()); -- cgit v1.2.3-70-g09d2