Bug 417138

Summary: When printing C++ code, the folding is ignored
Product: [Applications] kate Reporter: Szokovacs Robert <szo>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 19.12.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Szokovacs Robert 2020-02-04 11:22:21 UTC
SUMMARY

I need to print out some code, but not all parts are equally interesting, so I used the folding feature to hide the less important parts. In print, everything was expanded.

STEPS TO REPRODUCE
1. Fold some parts of the code
2. Print
3. 

OBSERVED RESULT
All the code is expanded in print

EXPECTED RESULT
The folded parts should be printed as folded
Comment 1 Christoph Cullmann 2023-03-31 08:49:49 UTC
Git commit c892d15952d4ba51fb66b99dc8b3a71953963a62 by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 31/03/2023 at 08:48.
Pushed by cullmann into branch 'master'.

Dont ignore folding when printing code

This is optional and can be turned off

M  +1    -0    src/printing/kateprinter.cpp
M  +11   -0    src/printing/printconfigwidgets.cpp
M  +2    -0    src/printing/printconfigwidgets.h
M  +15   -7    src/printing/printpainter.cpp
M  +5    -1    src/printing/printpainter.h

https://invent.kde.org/frameworks/ktexteditor/commit/c892d15952d4ba51fb66b99dc8b3a71953963a62
Comment 2 Waqar Ahmed 2023-04-04 19:41:49 UTC
Git commit 79e33beb4552b80e06d2e3efb6ea266281a3079c by Waqar Ahmed.
Committed on 04/04/2023 at 19:01.
Pushed by cullmann into branch 'kf5'.

Dont ignore folding when printing code

This is optional and can be turned off

M  +1    -0    src/printing/kateprinter.cpp
M  +11   -0    src/printing/printconfigwidgets.cpp
M  +2    -0    src/printing/printconfigwidgets.h
M  +17   -9    src/printing/printpainter.cpp
M  +5    -1    src/printing/printpainter.h

https://invent.kde.org/frameworks/ktexteditor/commit/79e33beb4552b80e06d2e3efb6ea266281a3079c