Indent folding mode error - blank lines
Submitted by Wednesday, 1 December, 2010 - 14:14
on
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.
A.
___B.
.
C.
(dots denote end of lines, third line is a blank line, ___ represents a tab) after folding looks like:
A.
C.
However, the blank line is on the same "tab hierarchy" as A and C. Therefore
A.
.
C.
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:
A.
___B.
___.
C.
should fold to:
A.
C.
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.
Thanks
Patrick
However, when using indent mode, blank lines are not folded correctly. E.g.
A.
___B.
.
C.
(dots denote end of lines, third line is a blank line, ___ represents a tab) after folding looks like:
A.
C.
However, the blank line is on the same "tab hierarchy" as A and C. Therefore
A.
.
C.
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:
A.
___B.
___.
C.
should fold to:
A.
C.
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.
Thanks
Patrick