summaryrefslogtreecommitdiffstats
path: root/tbl_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-08 17:16:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-08 17:16:48 +0000
commit41669ffe63fd5c360ab2ee4890112fd7acefdbb0 (patch)
tree01902076849d495293ef6d9915aa9fb4eee5ee79 /tbl_term.c
parent29f8344876163462796a63fb0835930cea1b51ce (diff)
downloadmandoc-41669ffe63fd5c360ab2ee4890112fd7acefdbb0.tar.gz
The numerical column type centres on the *last* decimal point.
Diffstat (limited to 'tbl_term.c')
-rw-r--r--tbl_term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbl_term.c b/tbl_term.c
index c3dbaf35..6f8f87f3 100644
--- a/tbl_term.c
+++ b/tbl_term.c
@@ -400,7 +400,7 @@ tbl_number(struct termp *tp, const struct tbl *tbl,
psz = term_strlen(tp, buf);
- if (NULL != (cp = strchr(str, tbl->decimal))) {
+ if (NULL != (cp = strrchr(str, tbl->decimal))) {
buf[1] = '\0';
for (ssz = 0, i = 0; cp != &str[i]; i++) {
buf[0] = str[i];