summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2013-12-19 11:43:19 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-12 14:08:05 -0700
commit8f17f5b22ae54ecc3dfdafe33d7697e1bf3949f6 (patch)
tree5900008650f4454d631c7a208cda388c9e5c8568 /builtin
parentwt-status: extract the code to compute width for labels (diff)
downloadtgif-8f17f5b22ae54ecc3dfdafe33d7697e1bf3949f6.tar.xz
wt-status: i18n of section labels
The original code assumes that: (1) the number of bytes written is the width of a string, so they can line up; (2) the "how" string is always <= 19 bytes. Neither of which we should assume. Using the same approach as the earlier 3651e45c (wt-status: take the alignment burden off translators, 2013-11-05), compute the necessary column width to hold the longest label and use that for alignment. cf. http://bugs.debian.org/725777 Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Helped-by: Sandy Carter Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions