GNOME Bugzilla – Bug 523327
Tasks preview are not word-wrapped
Last modified: 2013-09-13 01:00:01 UTC
Please describe the problem: Task and memo preview does not word-wrap the text in the body. This is very annoying because the editor/details dialog for tasks/memo does word-wrap, so users get one very long line with a vertical scrollbar in the preview. It is, of course, possible to get around this by remembering to always insert linebreaks manually whenever you create a task, but this feels very clumsy and as if you have to fight the system. You also have to consider other resolutions. Steps to reproduce: 1. Create a new task or memo and open the editor for it. 2. Notice how the window is rather small by default 3. Write a description, letting the input field wrap your text. Write enough to fill the width of the preview. 4. Save the task/memo and view its preview. You'll notice the annoying vertical scrollbar. Actual results: The preview gets a vertical scrollbar instead of word-wrapping the text. Expected results: For the preview to word-wrap the text. Does this happen every time? Yes. Other information: This might not seem like a very big deal, but in fact, several of my users have been confused by this behaviour. A user enters alot of text and separates paragraphs by using two linebreaks and then look at it in the preview. The user doesn't notice the vertical scrollbar, and it looks like the first line of the first paragraph is followed by the first line of the second paragraph and everything in between is missing.
I wonder how I managed to write vertical so many times when I meant horisontal... :) Anyway.. This behaviour is really tiresome. I've deactivated the preview for tasks, because it's too tempting to start inserting hard breaks, which is really bad practice. However, the memo view doesn't have a way to disable preview.
Confirming on 2.23.90.
This is a side effect of the fix for bug #340267, which is there to have tabs shown in the proper way. I'll look what I can do to have done both things.
Created attachment 117391 [details] [review] proposed evo patch for evolution; With this patch the text is shown in monospace, keeps tabs and is wrapped as expected.
Patch looks good but I fear the change to monospace (which I like!) might be seen as a UI break, and we're under a freeze now. Maybe ask Srini for a second opinion? I'll at least mark it as "commit after freeze" for now.
Srini, see previous comment.
Just a note, it's not a change, there was <pre></pre> I added before, and changed it to <tt></tt> now, with the same font effect, but different behavior.
Ah, you're right. I got it backwards: it's the _editor_ that I want monospaced. So no UI changes then. Go ahead and commit.
Please translate... The editor, as far as I can tell, isn't related to this bug?
Correct. It was just an off-hand remark. The task (and memo) editor lets you input the description in a variable-width font, but the preview pane displays the description in a fixed-width font. They should be consistent, and I'd prefer fixed-width for both. But that's a separate issue.
Committed to trunk. Committed revision 36103.