hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=afaa70f21fa4ca4485570729bab6c20e5971c097
commit afaa70f21fa4ca4485570729bab6c20e5971c097 Author: ChunEon Park <[email protected]> Date: Sat Mar 15 01:45:16 2014 +0900 editor - removed one line leftover spacing in the editor lines. Don't apply <br> tag to end of the last line text. This caused the one empty line spacing. Now it's fixed. --- src/bin/edc_editor.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c index f2c95db..105200b 100644 --- a/src/bin/edc_editor.c +++ b/src/bin/edc_editor.c @@ -819,7 +819,17 @@ edit_edc_read(edit_data *ed, const char *file_path) if (!strbuf) goto err; Eina_File_Line *line; - int line_num = 0; + + //Read first line specially. + if (eina_iterator_next(itr, (void **)(void *)&(line))) + { + if (!eina_strbuf_append_length(strbuf, line->start, line->length)) + goto err; + elm_entry_entry_append(ed->en_line, "1"); + } + + //Read last lines. + int line_num = 1; EINA_ITERATOR_FOREACH(itr, line) { //Append edc ccde @@ -833,10 +843,9 @@ edit_edc_read(edit_data *ed, const char *file_path) line_num++; //Append line number - sprintf(buf, "%d<br/>", line_num); + sprintf(buf, "<br/>%d", line_num); elm_entry_entry_append(ed->en_line, buf); } - elm_entry_entry_append(ed->en_edit, eina_strbuf_string_get(strbuf)); ed->line_max = line_num; --
