https://bugs.kde.org/show_bug.cgi?id=366704
Bug ID: 366704 Summary: RFE: Add whitespace (blank line[s]) after collapsed headings. Product: kate Version: unspecified Platform: Debian stable OS: Linux Status: UNCONFIRMED Severity: wishlist Priority: NOR Component: folding Assignee: kwrite-bugs-n...@kde.org Reporter: rhkra...@gmail.com 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. -- You are receiving this mail because: You are watching all bug changes.