Commit 3b132bfd authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Supress printing a '-' if the format includes a manual '-' even if the


1999-12-18  Jody Goldberg <jgoldberg@home.com>

	* src/format.c (format_number) : Supress printing a '-' if the format
	  includes a manual '-' even if the negative is preceded by a \
parent 256e262e
1999-12-18 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_number) : Supress printing a '-' if the format
includes a manual '-' even if the negative is preceded by a \
1999-12-18 Kjartan Maraas <kmaraas@online.no>
* src/dialogs/print.glade.h: Added xgettext:no-c-format in
......
1999-12-18 Jody Goldberg <jgoldberg@home.com>
* src/format.c (format_number) : Supress printing a '-' if the format
includes a manual '-' even if the negative is preceded by a \
1999-12-18 Kjartan Maraas <kmaraas@online.no>
* src/dialogs/print.glade.h: Added xgettext:no-c-format in
......
......@@ -1042,7 +1042,10 @@ format_number (gdouble number, const StyleFormatEntry *style_format_entry)
break;
case '\\':
if (*(format+1)){
if (format[1] != '\0') {
/* TODO TODO TODO : Do we need any more chars here ?? */
if (format[1] == '-')
info.supress_minus = TRUE;
format++;
g_string_append_c (result, *format);
}
......@@ -1072,9 +1075,6 @@ format_number (gdouble number, const StyleFormatEntry *style_format_entry)
/* fall down */
case '$':
g_string_append_c (result, *format);
break;
case '£':
g_string_append_c (result, *format);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment