Commit b8a2d19c authored by Almer S. Tigelaar's avatar Almer S. Tigelaar Committed by Almer S. Tigelaar

Make this work as it is supposed to.

2001-07-09  Almer S. Tigelaar  <almer@gnome.org>

	* stf-parse.c (stf_parse_convert_to_unix): Make this work as it
	is supposed to.
parent d7707e2d
2001-07-09 Almer S. Tigelaar <almer@gnome.org>
* stf-parse.c (stf_parse_convert_to_unix): Make this work as it
is supposed to.
2001-07-09 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-pane.c (canvas_bar_realized) : moved from scg.
......
2001-07-09 Almer S. Tigelaar <almer@gnome.org>
* stf-parse.c (stf_parse_convert_to_unix): Make this work as it
is supposed to.
2001-07-09 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-pane.c (canvas_bar_realized) : moved from scg.
......
2001-07-09 Almer S. Tigelaar <almer@gnome.org>
* stf-parse.c (stf_parse_convert_to_unix): Make this work as it
is supposed to.
2001-07-09 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-pane.c (canvas_bar_realized) : moved from scg.
......
2001-07-09 Almer S. Tigelaar <almer@gnome.org>
* stf-parse.c (stf_parse_convert_to_unix): Make this work as it
is supposed to.
2001-07-09 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-pane.c (canvas_bar_realized) : moved from scg.
......
......@@ -835,22 +835,24 @@ stf_parse_get_colwidth (StfParseOptions_t *parseoptions, char const *data, int c
gboolean
stf_parse_convert_to_unix (char *data)
{
char *s;
char *d;
char *s, *d;
if (!data)
return FALSE;
for (s = d = data; *s != '\0'; s++, d++) {
for (s = d = data; *s != '\0';) {
if (*s == '\r') {
*d++ = '\n';
s++;
if (*s == '\n')
s++;
continue;
} else if (*s == '\f') {
s++;
} else
*d = *s;
continue;
}
*d++ = *s++;
}
*d = '\0';
......
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