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 | aa9ca6960e283b808aecccfb67f2cc730f0e83b8 (patch) | |
tree | ac8bf6562fd8bdc81e8361f15567f92a8e6622d9 /tbl_term.c | |
parent | 74fefd1ac6f4b27426d1a6a6dc64e5c52b84945d (diff) | |
download | mandoc-aa9ca6960e283b808aecccfb67f2cc730f0e83b8.tar.gz mandoc-aa9ca6960e283b808aecccfb67f2cc730f0e83b8.tar.zst mandoc-aa9ca6960e283b808aecccfb67f2cc730f0e83b8.zip |
The numerical column type centres on the *last* decimal point.
Diffstat (limited to 'tbl_term.c')
-rw-r--r-- | tbl_term.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: tbl_term.c,v 1.14 2011/01/08 17:00:27 kristaps Exp $ */ +/* $Id: tbl_term.c,v 1.15 2011/01/08 17:16:48 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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]; |