|
From: SourceForge.net <no...@so...> - 2011-08-28 16:35:44
|
Bugs item #3194983, was opened at 2011-02-28 12:30 Message generated for change (Comment added) made by codelurker You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3194983&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: text area and syntax packages Group: None Status: Open Resolution: Wont Fix Priority: 5 Private: No Submitted By: The Shady Watcher (codelurker) Assigned to: Nobody/Anonymous (nobody) Summary: PHP mode wraps commas wrong Initial Comment: The following reproduces the bug: In Options | jEdit | Editing, set the default Wrap mode to "hard"; and the wrap column to something like 80. Open a new document. Save it as a .php file. Type <p> followed by a lot of text, until it comes close to the wrap column. Type a comma at the end of the text, and follow that with some text without a space, until it causes a wrap. You will notice that the comma comes down to the front of the line that receives the wrapped text, followed by a space and the wrapped text. The comma and the trailing space, which had been to the left of the wrap column, should not be getting wrapped along with the text that had crossed the wrap column. When the word before the wrap column does not end with a comma, it wraps normally. I have not tested other modes to see if it happens there, but modes which use tags may exhibit this behavior, such as html, shtml, sgml and xml. I do know that if the <p> tag is not initially typed in, it wraps commas correctly. ---------------------------------------------------------------------- >Comment By: The Shady Watcher (codelurker) Date: 2011-08-28 16:35 Message: BTW: note the space after the comma ---------------------------------------------------------------------- Comment By: The Shady Watcher (codelurker) Date: 2011-08-28 16:31 Message: I'm not sure how I feel about that case. The case I'm talking about is, you have a line aaaa, bbbbb and you keep adding letters to the end of the bbbbb word. You get: aaaa , bbbbbmoreletters That is wrong. In text mode, it is aaaa, bbbbbmoreletters which is exactly what you want inside of <p></p> tags. It probably does this in HTML and XML modes too, but I use PHP mode mostly. ---------------------------------------------------------------------- Comment By: Matthieu Casanova (kpouer) Date: 2011-08-28 10:21 Message: I don't see the problem, I have at the end of my line aaa,bb if I continue typing the aaa,bbb are wrapped to the next line. Is that a problem ? ---------------------------------------------------------------------- Comment By: The Shady Watcher (codelurker) Date: 2011-02-28 19:10 Message: Sorry. I hit refresh on my browser, and accidentally created item 3195359 which is a dupe of this one. >'m not sure, the problem is that the comma is wrapped but it would be better if it remains on the previous line and the text after was wrapped ? Would it be better to keep the comma with the previous word? Definately. It doesn't wrap a comma to the next line in the default mode. Word doesn't do it. OpenOffice write doesn't do it. ---------------------------------------------------------------------- Comment By: Matthieu Casanova (kpouer) Date: 2011-02-28 13:12 Message: I'm not sure, the problem is that the comma is wrapped but it would be better if it remains on the previous line and the text after was wrapped ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100588&aid=3194983&group_id=588 |