diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-08 17:16:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-08 17:16:48 +0000 |
commit | 41669ffe63fd5c360ab2ee4890112fd7acefdbb0 (patch) | |
tree | 01902076849d495293ef6d9915aa9fb4eee5ee79 /out.c | |
parent | 29f8344876163462796a63fb0835930cea1b51ce (diff) | |
download | mandoc-41669ffe63fd5c360ab2ee4890112fd7acefdbb0.tar.gz |
The numerical column type centres on the *last* decimal point.
Diffstat (limited to 'out.c')
-rw-r--r-- | out.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -527,7 +527,7 @@ tblcalc_number(struct rofftbl *tbl, struct roffcol *col, psz = (*tbl->slen)(buf, tbl->arg); - if (NULL != (cp = strchr(str, tp->decimal))) { + if (NULL != (cp = strrchr(str, tp->decimal))) { buf[1] = '\0'; for (ssz = 0, i = 0; cp != &str[i]; i++) { buf[0] = str[i]; |