From ac622c6d673c708d48527db8a189401422a5d03c Mon Sep 17 00:00:00 2001 From: Yoshihisa Uchida Date: Sat, 26 Jun 2010 09:14:53 +0000 Subject: text viewer: reworks screen access logics and some bugs fix. - screen access logics separte from tv_window. (new tv_display.[ch]) - using multi screen api. - (bug fix) the head of the each line is not normally displayed when the alignment is RIGHT. - (bug fix) unnecessary blank line is not displayed. (a part of FS#11400). - (bug fix) the order by which callback functions were called was not correct. (FIFO->FILO) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27138 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/text_viewer/tv_text_processor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/plugins/text_viewer/tv_text_processor.c') diff --git a/apps/plugins/text_viewer/tv_text_processor.c b/apps/plugins/text_viewer/tv_text_processor.c index 1ddee62077..edb2ad0483 100644 --- a/apps/plugins/text_viewer/tv_text_processor.c +++ b/apps/plugins/text_viewer/tv_text_processor.c @@ -512,7 +512,8 @@ int tv_create_formed_text(const unsigned char *src, ssize_t bufsize, tv_get_ucs(src, &ch); is_indent = (tv_isspace(ch) && !is_break_line); - if (is_indent && preferences->indent_spaces == 0 && (expand_extra_line = !expand_extra_line) == true) + if (is_indent && preferences->line_mode == LM_REFLOW && preferences->indent_spaces == 0 + && (expand_extra_line = !expand_extra_line) == true) return 0; for (i = 0; i < block_count; i++) -- cgit v1.2.3