From aa9ca6960e283b808aecccfb67f2cc730f0e83b8 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 8 Jan 2011 17:16:48 +0000 Subject: The numerical column type centres on the *last* decimal point. --- tbl_term.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tbl_term.c') diff --git a/tbl_term.c b/tbl_term.c index edf03420..34a445cd 100644 --- a/tbl_term.c +++ b/tbl_term.c @@ -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 * @@ -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]; -- cgit v1.2.3-56-ge451