Bug 417668 - indentation lines should not be interrupted by empty lines within the same indentation block
Summary: indentation lines should not be interrupted by empty lines within the same in...
Status: CONFIRMED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-14 21:02 UTC by kde
Modified: 2022-01-22 20:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of the current indentation lines being interrupted (67.15 KB, image/png)
2020-02-14 21:02 UTC, kde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2020-02-14 21:02:05 UTC
Created attachment 126038 [details]
screenshot of the current indentation lines being interrupted

Indentation is indicating nesting level of a code block. Empty lines within such block commonly separate logical sub-parts of the block (like text paragraphs within sections); as this is organizationally lower feature than nesting itself, indentation line should span across empty lines within code block. The attachment shows (marked by red lines) where indentation lines are broken but should not.

This would add some level of non-locality to the renderer, as empty (whitespace-only) lines would have to check indentation level of closest lines above and below to determine their own "fake" nesting level.




SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Waqar Ahmed 2022-01-22 20:06:22 UTC
One can say that this is a feature which allows you to identify empty lines quickly ;)