1781 if (value.find(
'\n') != std::string::npos
or width == 0
or value.length() > 132)
1788 for (
auto ch : value)
1790 if (pc ==
'\n' and ch ==
';')
1796 if (value.back() !=
'\n')
1801 else if (sac_parser::is_unquoted_string(value))
1805 if (value.length() < width)
1807 os << std::string(width - value.length(),
' ');
1813 offset += value.length() + 1;
1819 for (
char q : {
'\'',
'"' })
1821 auto p = value.find(q);
1822 while (p != std::string::npos and sac_parser::is_non_blank(value[p + 1]) and value[p + 1] != q)
1823 p = value.find(q, p + 1);
1825 if (p != std::string::npos)
1828 os << q << value << q;
1830 if (value.length() + 2 < width)
1832 os << std::string(width - value.length() - 2,
' ');
1838 offset += value.length() + 1;
1849 os <<
';' << value <<
'\n'