Commit 9f058999 authored by Almer. S. Tigelaar's avatar Almer. S. Tigelaar Committed by Almer S. Tigelaar

Add the form feed character (\f) as valid text character.

2000-05-06  Almer. S. Tigelaar.  <almer1@dds.nl>

	* src/stf-parse.c (stf_parse_is_valid_data) : Add
	the form feed character (\f) as valid text character.
	(stf_parse_convert_to_unix) : In addition to CRLF and CR,
	remove form feeds (\f) from data.

	* src/stf.c (stf_read_workbook) : Add a workbook_recalc just
	to be sure.
parent 479bddb8
2000-05-06 Almer. S. Tigelaar. <almer1@dds.nl>
* src/stf-parse.c (stf_parse_is_valid_data) : Add
the form feed character (\f) as valid text character.
(stf_parse_convert_to_unix) : In addition to CRLF and CR,
remove form feeds (\f) from data.
* src/stf.c (stf_read_workbook) : Add a workbook_recalc just
to be sure.
2000-05-06 Michael Meeks <michael@helixcode.com>
* src/eval.c (handle_cell_range_deps): Add 3D dependency support.
......
2000-05-06 Almer. S. Tigelaar. <almer1@dds.nl>
* src/stf-parse.c (stf_parse_is_valid_data) : Add
the form feed character (\f) as valid text character.
(stf_parse_convert_to_unix) : In addition to CRLF and CR,
remove form feeds (\f) from data.
* src/stf.c (stf_read_workbook) : Add a workbook_recalc just
to be sure.
2000-05-06 Michael Meeks <michael@helixcode.com>
* src/eval.c (handle_cell_range_deps): Add 3D dependency support.
......
2000-05-06 Almer. S. Tigelaar. <almer1@dds.nl>
* src/stf-parse.c (stf_parse_is_valid_data) : Add
the form feed character (\f) as valid text character.
(stf_parse_convert_to_unix) : In addition to CRLF and CR,
remove form feeds (\f) from data.
* src/stf.c (stf_read_workbook) : Add a workbook_recalc just
to be sure.
2000-05-06 Michael Meeks <michael@helixcode.com>
* src/eval.c (handle_cell_range_deps): Add 3D dependency support.
......
2000-05-06 Almer. S. Tigelaar. <almer1@dds.nl>
* src/stf-parse.c (stf_parse_is_valid_data) : Add
the form feed character (\f) as valid text character.
(stf_parse_convert_to_unix) : In addition to CRLF and CR,
remove form feeds (\f) from data.
* src/stf.c (stf_read_workbook) : Add a workbook_recalc just
to be sure.
2000-05-06 Michael Meeks <michael@helixcode.com>
* src/eval.c (handle_cell_range_deps): Add 3D dependency support.
......
2000-05-06 Almer. S. Tigelaar. <almer1@dds.nl>
* src/stf-parse.c (stf_parse_is_valid_data) : Add
the form feed character (\f) as valid text character.
(stf_parse_convert_to_unix) : In addition to CRLF and CR,
remove form feeds (\f) from data.
* src/stf.c (stf_read_workbook) : Add a workbook_recalc just
to be sure.
2000-05-06 Michael Meeks <michael@helixcode.com>
* src/eval.c (handle_cell_range_deps): Add 3D dependency support.
......
2000-05-06 Almer. S. Tigelaar. <almer1@dds.nl>
* src/stf-parse.c (stf_parse_is_valid_data) : Add
the form feed character (\f) as valid text character.
(stf_parse_convert_to_unix) : In addition to CRLF and CR,
remove form feeds (\f) from data.
* src/stf.c (stf_read_workbook) : Add a workbook_recalc just
to be sure.
2000-05-06 Michael Meeks <michael@helixcode.com>
* src/eval.c (handle_cell_range_deps): Add 3D dependency support.
......
2000-05-06 Almer. S. Tigelaar. <almer1@dds.nl>
* src/stf-parse.c (stf_parse_is_valid_data) : Add
the form feed character (\f) as valid text character.
(stf_parse_convert_to_unix) : In addition to CRLF and CR,
remove form feeds (\f) from data.
* src/stf.c (stf_read_workbook) : Add a workbook_recalc just
to be sure.
2000-05-06 Michael Meeks <michael@helixcode.com>
* src/eval.c (handle_cell_range_deps): Add 3D dependency support.
......
......@@ -1287,7 +1287,8 @@ stf_parse_get_colwidth (StfParseOptions_t *parseoptions, const char *data, int i
*
* This function will convert the @data into
* unix line-terminated format. this means that CRLF (windows) will be converted to LF
* and CR (Macintosh) to LF
* and CR (Macintosh) to LF.
* In addition to that form feed (\F) characters will be removed.
* NOTE : This will not resize the buffer
*
* returns : TRUE on success, FALSE otherwise.
......@@ -1314,9 +1315,12 @@ stf_parse_convert_to_unix (const char *data)
dest++;
len++;
}
iterator++;
} else if (*iterator == '\f') {
iterator++;
}
*dest = *iterator;
iterator++;
......@@ -1349,7 +1353,8 @@ stf_parse_is_valid_data (const char *data)
if (!isprint ((unsigned char)*iterator) &&
*iterator != '\n' &&
*iterator != '\r' &&
*iterator != '\t') {
*iterator != '\t' &&
*iterator != '\f') {
valid = FALSE;
break;
......
......@@ -193,8 +193,8 @@ stf_read_workbook (CommandContext *context, Workbook *book, char const *filename
}
range = sheet_get_extent (sheet);
sheet_style_optimize (sheet, range);
workbook_recalc (book);
sheet_range_calc_spans (sheet, range, TRUE);
workbook_set_saveinfo (book, filename, FILE_FL_MANUAL,
gnumeric_xml_write_workbook);
......
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