}
}
te->cb(te->data, "savable", (void *)(te->savable?1:0));
-
+#if 0
/* after paste/cut, the font size/color information may be cleared */
snprintf(te->buf, MEMO_BUFFER_SIZE, "<font_size=%d><color=#%02x%02x%02x>",
te->record->font_size, color[2], color[1], color[0]);
if (text[0] == '\0') { /* no content */
- //elm_entry_entry_insert(te->entry, te->buf);
+ elm_entry_entry_insert(te->entry, te->buf);
} else if (text[0] != '<') { /* insert font information */
elm_entry_cursor_begin_set(te->entry);
- //elm_entry_entry_insert(te->entry, te->buf);
+ elm_entry_entry_insert(te->entry, te->buf);
elm_entry_cursor_end_set(te->entry);
}
+
if (!strstr(text, "</color></font_size>"))
{
elm_entry_cursor_end_set(te->entry);
elm_entry_entry_insert(te->entry, "</color></font_size>");
}
+#endif
SFREE(content);
MEMO_FUN_END();
}
EINA_LIST_FOREACH(list, l, md) {
if ((md != NULL) && !(md->has_doodle)) {
- g_string_append_printf(buf, "%s", md->content);
+ g_string_append_printf(buf, "%s\n", md->content);
}
}