diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
commit | 60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 (patch) | |
tree | a707602da466c02ff1a54b3263c3a881cd7204a4 /libqpdf/ContentNormalizer.cc | |
parent | 6b077332d38c093de2618d5e1481b42222106065 (diff) | |
download | qpdf-60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2.tar.zst |
Rerun clang-format
Diffstat (limited to 'libqpdf/ContentNormalizer.cc')
-rw-r--r-- | libqpdf/ContentNormalizer.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libqpdf/ContentNormalizer.cc b/libqpdf/ContentNormalizer.cc index 93f3aad1..b05b4220 100644 --- a/libqpdf/ContentNormalizer.cc +++ b/libqpdf/ContentNormalizer.cc @@ -44,13 +44,11 @@ ContentNormalizer::handleToken(QPDFTokenizer::Token const& token) // Replacing string and name tokens in this way normalizes // their representation as this will automatically handle // quoting of unprintable characters, etc. - writeToken( - QPDFTokenizer::Token(QPDFTokenizer::tt_string, token.getValue())); + writeToken(QPDFTokenizer::Token(QPDFTokenizer::tt_string, token.getValue())); break; case QPDFTokenizer::tt_name: - writeToken( - QPDFTokenizer::Token(QPDFTokenizer::tt_name, token.getValue())); + writeToken(QPDFTokenizer::Token(QPDFTokenizer::tt_name, token.getValue())); break; default: @@ -59,10 +57,8 @@ ContentNormalizer::handleToken(QPDFTokenizer::Token const& token) } value = token.getRawValue(); - if (((token_type == QPDFTokenizer::tt_string) || - (token_type == QPDFTokenizer::tt_name)) && - ((value.find('\r') != std::string::npos) || - (value.find('\n') != std::string::npos))) { + if (((token_type == QPDFTokenizer::tt_string) || (token_type == QPDFTokenizer::tt_name)) && + ((value.find('\r') != std::string::npos) || (value.find('\n') != std::string::npos))) { write("\n"); } } |