|
From: SourceForge.net <no...@so...> - 2006-12-29 23:10:16
|
Bugs item #1623562, was opened at 2006-12-28 11:47 Message generated for change (Comment added) made by geofflaw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1623562&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: editor core Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Geoff (geofflaw) Assigned to: Nobody/Anonymous (nobody) Summary: Word Wrap does not work in Hard mode Initial Comment: When a line contains a lot of text then I have observe the following: Word Wrap: None - works exactly as expected, long lines are displayed on one long line Word Wrap: Soft - breaks lines where there is a space character, which is as I would expect Word Wrap: Hard - initially looks like None but after "Format Paragraph" looks like soft, looks like a bug Changes made using Buffer Options. I would expect Hard to wrap at 80 characters irrespective to space characters etc. Selecting Hard mode and then "Format Paragraph" marks the file as Edited which is not what I would expect having typed nothing. Using jEdit 4.3 Pre 8 ---------------------------------------------------------------------- >Comment By: Geoff (geofflaw) Date: 2006-12-29 23:10 Message: Logged In: YES user_id=869700 Originator: YES I have attached the old document from the help and my proposed update which I think helps clarify the matter. I am happy for this to be improved upon. I will raise the feature request when I have written some more detail on it. Thanks, Geoff ---------------------------------------------------------------------- Comment By: Matthieu Casanova (kpouer) Date: 2006-12-29 13:46 Message: Logged In: YES user_id=285591 Originator: NO Hi, maybe there is a missing information in the doc : the line is broken only on spaces. And yes I think a new feature request for a wrap mode : window is the right thing. Unless someone knows a way to do that ? But I don't think it is already possible ---------------------------------------------------------------------- Comment By: Geoff (geofflaw) Date: 2006-12-29 12:01 Message: Logged In: YES user_id=869700 Originator: YES I have attached a test file, this does not seem to work with Hard Wrap as described in the documentation you quoted, so that may be a bug. However I do fail to see the use of the hard mode but let's not go there! Shall I raise a Feature Request for "Wrap Mode: Window" then? This sounds like the right way forward to me what do you think? File Added: jEditTestFile.txt ---------------------------------------------------------------------- Comment By: Matthieu Casanova (kpouer) Date: 2006-12-29 11:28 Message: Logged In: YES user_id=285591 Originator: NO Hi, I was wrong about the comparison with word processors, you're right. But here is the doc of the Hard Wrap In hard wrap mode, inserting text at the end of a line will automatically break the line if it extends beyond the wrap margin. Inserting or removing text in the middle of a line has no effect, however text can be re-wrapped using the Edit>Text>Format Paragraph command. What you expect is a softwrap that do not cut between words but at a fixed column count right ? I'm sorry this is not a bug since the hard wrap does what the doc says. It is a new feature request I think (or maybe it is possible to do that with the soft wrap ?) ---------------------------------------------------------------------- Comment By: Geoff (geofflaw) Date: 2006-12-29 11:15 Message: Logged In: YES user_id=869700 Originator: YES I have to disagree, word processors do not break up long lines by adding a new line they wrap it on the screen. Let's say I have a file with 4 lines of text, each 300 characters long and each character is between a and z, no space, tab or other white space. I would expect this: Word Wrap = None: 4 lines displayed each very long and I can scroll to the right using my cursor or scroll bar Word Wrap = Soft: same as None because there are no spaces Word Wrap = Hard: the 4 lines are either wrapped to the screen or the margin, so the horizontal scroll bar is not needed but the file contents are unchanged Take a look at Windows Notepad, it does what I am talking about, except the intelligent soft mode of course! I still find myself using Notepad instead of jEdit, which seems very wrong! ---------------------------------------------------------------------- Comment By: Matthieu Casanova (kpouer) Date: 2006-12-29 10:44 Message: Logged In: YES user_id=285591 Originator: NO Hi, I think it is not a bug. You should read again the documentation about wrapping : the Hard Wrap really change your text introducing some new lines like a word processor does ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=1623562&group_id=588 |