do {
int offset = gtk_text_iter_get_offset(&i);
- printf("reorder %d\n", offset);
+ //printf("reorder %d\n", offset);
if(gtk_text_iter_get_char(&i) == '\n') {
- if(!line_is_list) {
- printf("reorder break\n");
- break;
- }
line_is_list = 0;
}
if(em && em->type == EMBEDDED_WIDGET_LIST) {
line_is_list = 1;
if(em->intdata1 == 0 && !(offset >= ignore_begin && offset <= ignore_end)) {
- printf("reorder num %d\n", num);
+ //printf("reorder num %d\n", num);
em->intdata2 = num++;
ui_widget_redraw(em->widget);
}
char *path = g_file_get_path(file);
char *attachment_path = strdup(path);
- printf("dnd file: %s\n", path);
+ //printf("dnd file: %s\n", path);
if(path_is_image_file(cx_str(path))) {
GError *error = NULL;
cxMapFree(new_tags);
// add content
- printf("range: {%s}\n\n", text);
+ //printf("range: {%s}\n\n", text);
if(!is_code_block) {
cxBufferPutString(&out, text);
} else {
cxBufferTerminate(&out);
- printf("new markdown doc: \n\n%s\n\n", out.space);
+ //printf("new markdown doc: \n\n%s\n\n", out.space);
cxmutstr ret = cx_mutstrn(out.space, out.size);
return ret;