Skip to content

Commit

Permalink
Restyled
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Osterfeld <[email protected]>
  • Loading branch information
frankosterfeld committed Nov 25, 2024
1 parent 28d2550 commit a66d355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/include/gnuradio-4.0/YamlPmt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ inline void serialize(std::ostream& os, const pmtv::pmt& var, int level) {
os << "(" << value.real() << "," << value.imag() << ")\n";
} else if constexpr (std::is_same_v<T, std::string>) {
// Use multiline for strings containing newlines and printable characters only
bool multiline = value.contains('\n') && std::ranges::all_of(value, [](char c) { return std::isprint(c) || c == '\n'; });
bool multiline = value.contains('\n') && std::ranges::all_of(value, [](char c) { return std::isprint(c) || c == '\n'; });
serializeString(os, value, level, multiline);
} else if constexpr (std::same_as<T, pmtv::map_t>) {
// flow-style formatting
Expand Down

0 comments on commit a66d355

Please sign in to comment.