File: 001_pygments-solarized.patch

package info (click to toggle)
gnome-feeds 2.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,520 kB
  • sloc: python: 5,369; sh: 93; xml: 28; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Henry-Nicolas Tourneur <debian@nilux.be>
Date: Wed, 3 Jun 2020 18:51:41 +0000
Subject: Don't use solarized-dark

The Debian package for pygments does not ship this style.
Using it causes a module import error while running gfeeds.

Forwarded: not-needed
---
 gfeeds/util/build_reader_html.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gfeeds/util/build_reader_html.py b/gfeeds/util/build_reader_html.py
index f880c01..1292d97 100644
--- a/gfeeds/util/build_reader_html.py
+++ b/gfeeds/util/build_reader_html.py
@@ -65,7 +65,7 @@ def build_syntax_highlight(root: HtmlElement) -> Tuple[str, HtmlElement]:
             except pygments.util.ClassNotFound:
                 continue
 
-        formatter = HtmlFormatter(style='solarized-dark', linenos=False)
+        formatter = HtmlFormatter(linenos=False)
 
         if not syntax_highlight_css:
             syntax_highlight_css = formatter.get_style_defs()