Commit b65c3e2e authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Always quote strings values starting with a quote.

2003-06-27  Morten Welinder  <terra@gnome.org>

	* src/rendered-value.c (cell_get_entered_text): Always quote
	strings values starting with a quote.
parent f7e5cba3
......@@ -48,8 +48,8 @@ Pending Patches
0.13) giving focus to an expr entry with a single rangeref
in another sheet should make that range visible.
0.14) Convert dialog-consolidate to TreeView (DONE)
0.15) Enter ''123 in a text-formattted cell and expr entry
will show only one quote.
0.15) Enter ''123 in a cell and expr entry will show only (DONE)
one quote.
1) graphs
1.1) Split plot xml file engine, type, and family plugins (DONE)
......
2003-06-27 Morten Welinder <terra@gnome.org>
* src/rendered-value.c (cell_get_entered_text): Always quote
strings values starting with a quote.
2003-06-26 Jody Goldberg <jody@gnome.org>
* src/gui-file.c (ask_for_file_saver) : ditto.
......
......@@ -59,6 +59,7 @@ Morten:
* Unify our three regexp quoting functions into just one (correct)
function.
* Make pretty-printing clarify trees like "-2^2" into "(-2)^2".
* Fix cell entry display for strings with initial quote.
--------------------------------------------------------------------------
......
2003-06-27 Morten Welinder <terra@gnome.org>
* src/rendered-value.c (cell_get_entered_text): Always quote
strings values starting with a quote.
2003-06-26 Jody Goldberg <jody@gnome.org>
* src/gui-file.c (ask_for_file_saver) : ditto.
......
2003-06-27 Morten Welinder <terra@gnome.org>
* src/rendered-value.c (cell_get_entered_text): Always quote
strings values starting with a quote.
2003-06-26 Jody Goldberg <jody@gnome.org>
* src/gui-file.c (ask_for_file_saver) : ditto.
......
......@@ -386,7 +386,8 @@ cell_get_entered_text (Cell const *cell)
if (cell->value->type == VALUE_STRING) {
/* Try to be reasonably smart about adding a leading quote */
char const *tmp = cell->value->v_str.val->str;
if (NULL == gnm_expr_char_start_p (tmp)) {
if (tmp[0] != '\'' && !gnm_expr_char_start_p (tmp)) {
Value *val = format_match_number (tmp,
cell_get_format (cell),
workbook_date_conv (cell->base.sheet->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