diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-03 22:10:27 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-05 20:56:19 +0200 |
commit | 77e889495f7c513ba8677df5fe662f08053709eb (patch) | |
tree | 06191e152c3d7a4e398837ebc4f87038b1797bc9 /libqpdf/QPDFAcroFormDocumentHelper.cc | |
parent | 12f1eb15ca3fed6310402847559a7c99d3c77847 (diff) | |
download | qpdf-77e889495f7c513ba8677df5fe662f08053709eb.tar.zst |
Update some code manually to get better formatting results
Add comments to force line breaks, parenthesize function arguments
that are contatenated strings, etc. -- these kinds of changes improve
clang-format's results and also cause emacs cc-mode to match
clang-format. After this type of change, most of the time, when
clang-format and emacs disagree, clang-format is better.
Diffstat (limited to 'libqpdf/QPDFAcroFormDocumentHelper.cc')
-rw-r--r-- | libqpdf/QPDFAcroFormDocumentHelper.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libqpdf/QPDFAcroFormDocumentHelper.cc b/libqpdf/QPDFAcroFormDocumentHelper.cc index 96f6d395..276fc542 100644 --- a/libqpdf/QPDFAcroFormDocumentHelper.cc +++ b/libqpdf/QPDFAcroFormDocumentHelper.cc @@ -1110,8 +1110,10 @@ QPDFAcroFormDocumentHelper::transformAnnotations( } else if (ap.second.isDictionary()) { for (auto& ap2 : ap.second.ditems()) { if (ap2.second.isStream()) { - streams.push_back(replace_stream( - ap.second, ap2.first, ap2.second)); + streams.push_back( + // line-break + replace_stream( + ap.second, ap2.first, ap2.second)); } } } |