summaryrefslogtreecommitdiffstats
path: root/src/shared/extension-release.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-05 12:53:53 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-05-05 13:59:23 +0200
commitfc96e5c0536ae6d9d689a373b696f4fd3659f7d3 (patch)
treedcd2abb7deafeeaff8efd704f4574737e47a2455 /src/shared/extension-release.h
parentbasic/escape: flagsify xescape_full() (diff)
downloadsystemd-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 'src/shared/extension-release.h')
0 files changed, 0 insertions, 0 deletions