Bug 366704 - RFE: Add whitespace (blank line[s]) after collapsed headings for folding without end tags
Summary: RFE: Add whitespace (blank line[s]) after collapsed headings for folding with...
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: folding (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-12 15:20 UTC by Randy Kramer
Modified: 2019-05-19 15:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Kramer 2016-08-12 15:20:28 UTC
Details:  Now that Bug 112888 (folding without end tags) has been fixed, I'm finally going back and modifying the .xml file I wrote for highlighting and folding to work without ending markup.  I've run in to a new problem / disappointment--when I fold without ending markup, there is no whitespace between collapsed headings:

<example without whitespace--note that the From lines are the top level headings>

From "file /rhk/bin/askRhk4a_2016_notes.aml" Sun Jul 31 07:01:07 2016
From "Files and location" Sun Jul 31 07:08:12 2016 
From "Notes on design and the state diagram" Sun Jul 31 07:08:30 2016 
---++ New problem: No whitespace between collapsed headings
---++ Behavior of askRhk04?.xml files with Kate bugfix
---+++ askRhk04.xml with ending markup
---+++ askRhk04.xml without ending markup
---++ Simplifications
From "Files and location" Sun Jul 31 07:08:12 2016 

</example without whitespace>

Especially when I have a long file / outline, it is hard (for me) to distinguish / read / skim those collapsed headings without blank lines between them.  The following is what I'd like to see.

<example with whitespace--note that the From lines are the top level headings>

From "file /rhk/bin/askRhk4a_2016_notes.aml" Sun Jul 31 07:01:07 2016

From "Files and location" Sun Jul 31 07:08:12 2016 

From "Notes on design and the state diagram" Sun Jul 31 07:08:30 2016 

---++ New problem: No whitespace between collapsed headings

---++ Behavior of askRhk04?.xml files with Kate bugfix

---+++ askRhk04.xml with ending markup

---+++ askRhk04.xml without ending markup

---++ Simplifications

From "Files and location" Sun Jul 31 07:08:12 2016 

</example with whitespace>

I can imagine a few approaches to a solution
   * a global option (named, perhaps, "Blank line[s] after collapsed heading") that, when set, put one (or a specified number) of blank lines after a collapsed heading and before the next heading (collapsed or not).
   
   * a new parameter that can be added to any context in a kate .xml highlighting / folding file (named, perhaps, blankLinesAfterCollapsedHeading) that, when set, put one (or a specified number) of blank lines after the collapsed heading defined by the given context.
   
I can imagine that others (and at times, even me) will prefer not to have that added blank line, so it should be reasonably easy to change from the GUI.  (Of course, if the option is set in each context, I could switch between blank lines or not by having 2 .xml files and switching between them.)

This is only an issue for folding when there is no ending markup for a folding section--with ending markup, blank lines after the ending markup are preserved.

Reproducible: Always

Steps to Reproduce:
1.  I think I've provided enough under information under Details, but, if not, ask a question.
2.
3.

Actual Results:  
See the example in Details without whitespace.

Expected Results:  
See the example in Details with whitespace.
Comment 1 Randy Kramer 2016-08-12 15:25:36 UTC
When I say ending markup that is synonymous with end tags.
Comment 2 Christoph Cullmann 2019-05-19 15:02:05 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last year and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

Patches can be handed in via https://phabricator.kde.org/differential/

Greetings
Christoph Cullmann