The behaviour of a line at indent folding should only depend on the number of initial
tabs in the line, not on the content of the line. However, blank lines befora and
after a tabbed text disappear by folding, even if they contain no tab and therefore
do not belong into the fold.
First I thougt this was an error but Robert Schwenn told me this was actually a feature which was introduced a year ago ( see http://sourceforge.net/tracker/?func=detail&aid=2846169&group_id=588&atid=300588 ).
I seem to be one of few people who use jEdit not for programming but for structured text editing. I really would need and want to control the behaviour of "blank lines" to structure my text, i.e. to decide if it belongs into the fold or not, by the number of tabs in the "empty" line. Blank lines should not always disappear when folding. Otherwise a partly folded text is really difficult to read.
I see that cyzsuraj's intention was to include blank lines, which are BEFORE a tabbed text, into the fold. My problem is that blank lines AFTER a fold do also disappear. Perhaps I do not understand cyzsuraj's problem completely, but couldn't the blank line before or after a tabbed text be included into the fold by simply introducing a tab in the blank line?
If this feature would cause problems to the programmers in a way I can not judge, could there alternatively be a global option included to change the folding behaviour of such blank lines?
To be sure the problem is well defined, here I attach my initial description of it, no need to read it:
The behaviour of a line at indent folding should only depend on the number of initial tabs in the line, not on the content of the line.
However, when using indent mode, blank lines are not folded correctly. E.g.
(dots denote end of lines, third line is a blank line, ___ represents a tab) after folding looks like:
However, the blank line is on the same "tab hierarchy" as A and C. Therefore
would be correct. Why is this a problem? I use jEdit to edit plain text. Blank lines should serve to separate topics A and C, but after folding, the blank line is folded as well and readability is impaired a lot!
Only a line with tabs should disappear by folding:
should fold to:
By the way, as a workaround I tried to introduce a space into the blank line to get the folding correct, but this doesn't work. Only lines with real text fold correctly.
|Submitted||patrickbe - 2010-12-03 - 09:56:05z||Assigned||nobody|