Commit f70949b6 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

don't append tabs or newlines for singletons.

2001-09-21  Jody Goldberg <jgoldberg@home.com>

	* src/clipboard.c (cellregion_to_string) : don't append tabs or
	  newlines for singletons.
parent 2c5a2228
2001-09-21 Jody Goldberg <jgoldberg@home.com>
* src/clipboard.c (cellregion_to_string) : don't append tabs or
newlines for singletons.
* src/item-bar.c (item_bar_event) : fix silliness that was breaking
autoscroll.
......
2001-09-21 Jody Goldberg <jgoldberg@home.com>
* src/clipboard.c (cellregion_to_string) : don't append tabs or
newlines for singletons.
* src/item-bar.c (item_bar_event) : fix silliness that was breaking
autoscroll.
......
2001-09-21 Jody Goldberg <jgoldberg@home.com>
* src/clipboard.c (cellregion_to_string) : don't append tabs or
newlines for singletons.
* src/item-bar.c (item_bar_event) : fix silliness that was breaking
autoscroll.
......
2001-09-21 Jody Goldberg <jgoldberg@home.com>
* src/clipboard.c (cellregion_to_string) : don't append tabs or
newlines for singletons.
* src/item-bar.c (item_bar_event) : fix silliness that was breaking
autoscroll.
......
......@@ -627,18 +627,20 @@ cellregion_to_string (CellRegion *cr)
all = g_string_new (NULL);
line = g_string_new (NULL);
for (row = 0; row < cr->rows; row++) {
for (row = 0; row < cr->rows;) {
g_string_assign (line, "");
for (col = 0; col < cr->cols; col++) {
for (col = 0; col < cr->cols;) {
if (data [row][col]) {
g_string_append (line, data [row][col]);
g_free (data [row][col]);
}
g_string_append_c (line, '\t');
if (++col < cr->cols)
g_string_append_c (line, '\t');
}
g_string_append (all, line->str);
g_string_append_c (all, '\n');
if (++row < cr->rows)
g_string_append_c (all, '\n');
}
return_val = g_strdup (all->str);
......
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