After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 556431 - Gedit prints matching bracket highlight
Gedit prints matching bracket highlight
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.24.x
Other All
: Normal minor
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-15 16:07 UTC by Krzysztof Kosiński
Modified: 2009-12-28 16:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Krzysztof Kosiński 2008-10-15 16:07:17 UTC
Please describe the problem:
When printing a text file from gedit, if there is a highlighted matching bracket in the document, the highlight will get printed. Obviously this should not happen, because bracket highlight is an UI feature.

Steps to reproduce:
1. Open e.g. a C source file and turn on matching bracket highlight
2. Position the cursor next to a bracket or parenthesis so that a matching bracket is highlighted
3. Without moving the cursor, print the document


Actual results:
The matching bracket is printed as highlighted - in my case on green background, but that depends on the color scheme

Expected results:
The matching bracket should be printed normally (without highlight)

Does this happen every time?
Yes

Other information:
Comment 1 Paolo Borelli 2009-12-28 16:23:30 UTC
I finally fixed this in gtksourceview.

commit 1766e2ec0b1fc5dc7b6230a9f0407fce07f850f3
Author: Paolo Borelli <pborelli@gnome.org>
Date:   Mon Dec 28 17:19:43 2009 +0100

    Special case the bracket matching tag when printing
    
    Back when we created the compositor, we didn't treat bracket match tags
    in a special way, because we wanted a more generic way to mark certain
    tags for printing or not. But given that we didn't add that api and that
    in all this time bracket match was the only problem reported, go for the
    special case solution.