jEdit Community - Resources for users of the jEdit Text Editor
Indent folding mode error - blank lines
Submitted by patrickb on Wednesday, 1 December, 2010 - 14:14
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
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
jEdit version
by Robert Schwenn on Wed, 01/12/2010 - 19:40
I guess You don't use the actual jEdit version 4.3.2, do You?
 
jEdit version
by patrickb on Thu, 02/12/2010 - 09:31
I was using 4.3.1, but now I updated to 4.3.2 and nothing has changed.
 
Feature
by Robert Schwenn on Thu, 02/12/2010 - 20:27
Ah sorry, I haven't read carefully. It's a feature, not a bug - seriously Smiling It has been introduced a year ago ( see http://sourceforge.net/tracker/?func=detail&aid=2846169&group_id=588&atid=300588 ). Because I feel exactly as the author of that patch, I thought You do so, too Eye-wink

So, You could file a feature request at the Souceforge tracker to add an option to consider lines with blanks and tabs only as normal lines...
 
blank lines
by patrickb on Fri, 03/12/2010 - 08:58
Thanks for your answer, I will post a feature request.
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300