GNOME Bugzilla – Bug 556431
Gedit prints matching bracket highlight
Last modified: 2009-12-28 16:23:30 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:
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.