Bug 417138 - When printing C++ code, the folding is ignored
Summary: When printing C++ code, the folding is ignored
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 19.12.1
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-04 11:22 UTC by Szokovacs Robert
Modified: 2023-04-04 19:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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