character. Add assertion.
+Sat Dec 9 20:04:22 2006 Ben Pfaff <blp@gnu.org>
+
+ * format.c (fmt_dollar_template): Use user's decimal point
+ character. Add assertion.
+
Sat Dec 9 20:02:25 2006 Ben Pfaff <blp@gnu.org>
* format.c (fmt_dollar_template): New function, based on
struct string s = DS_EMPTY_INITIALIZER;
int c;
+ assert (fmt->type == FMT_DOLLAR);
+
ds_put_char (&s, '$');
for (c = MAX (fmt->w - fmt->d - 1, 0); c > 0; )
{
}
if (fmt->d > 0)
{
- ds_put_char (&s, '.');
+ ds_put_char (&s, fmt_decimal_char (fmt->type));
ds_put_char_multiple (&s, '#', fmt->d);
}