=================================================================== RCS file: /cvs/mandoc/tbl_term.c,v retrieving revision 1.13 retrieving revision 1.15 diff -u -p -r1.13 -r1.15 --- mandoc/tbl_term.c 2011/01/07 14:59:52 1.13 +++ mandoc/tbl_term.c 2011/01/08 17:16:48 1.15 @@ -1,4 +1,4 @@ -/* $Id: tbl_term.c,v 1.13 2011/01/07 14:59:52 kristaps Exp $ */ +/* $Id: tbl_term.c,v 1.15 2011/01/08 17:16:48 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -27,9 +27,6 @@ #include "out.h" #include "term.h" -/* FIXME: `n' modifier doesn't always do the right thing. */ -/* FIXME: `n' modifier doesn't use the cell-spacing buffer. */ - static size_t term_tbl_len(size_t, void *); static size_t term_tbl_strlen(const char *, void *); static void tbl_char(struct termp *, char, size_t); @@ -403,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];