diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-05 12:53:53 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-05 13:59:23 +0200 |
commit | fc96e5c0536ae6d9d689a373b696f4fd3659f7d3 (patch) | |
tree | dcd2abb7deafeeaff8efd704f4574737e47a2455 /rules.d | |
parent | basic/escape: flagsify xescape_full() (diff) | |
download | systemd-fc96e5c0536ae6d9d689a373b696f4fd3659f7d3.tar.xz systemd-fc96e5c0536ae6d9d689a373b696f4fd3659f7d3.zip |
basic/escape: allow truncation mode where "…" is always appended
So far we would append "…" or "..." when the string was wider than the specified
output width. But let's add a mode where the caller knows that the string being
passed is already truncated.
The condition for jumping back in utf8_escape_non_printable_full() was
off-by-one. But we only jumped to that label after doing a check with a
stronger condition, so I think it didn't matter. Now it matters because we'd
output the forced ellipsis one column too early.
Diffstat (limited to 'rules.d')
0 files changed, 0 insertions, 0 deletions