forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/ghc: backport sphinx quoting fix
Reported-by: Andrew Savchenko Closes: https://bugs.gentoo.org/792558 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich <[email protected]>
- Loading branch information
Sergei Trofimovich
committed
Jun 6, 2021
1 parent
916ca79
commit 0147382
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
https://bugs.gentoo.org/792558 | ||
|
||
From 83407ffc7acc00cc025b9f6ed063add9ab9f9bcc Mon Sep 17 00:00:00 2001 | ||
From: Krzysztof Gogolewski <[email protected]> | ||
Date: Fri, 25 Sep 2020 02:52:19 +0200 | ||
Subject: [PATCH] Various documentation fixes | ||
|
||
* Use r'' in conf.py. This fixes a Sphinx warning: | ||
WARNING: Support for evaluating Python 2 syntax is deprecated and will be removed in Sphinx 4.0. Convert docs/users_guide/conf.py to Python 3 syntax. | ||
--- a/docs/users_guide/conf.py | ||
+++ b/docs/users_guide/conf.py | ||
@@ -100,13 +100,13 @@ htmlhelp_basename = 'GHCUsersGuide' | ||
latex_elements = { | ||
'inputenc': '', | ||
'utf8extra': '', | ||
- 'preamble': ''' | ||
+ 'preamble': r''' | ||
\usepackage{fontspec} | ||
\usepackage{makeidx} | ||
\setsansfont{DejaVu Sans} | ||
\setromanfont{DejaVu Serif} | ||
\setmonofont{DejaVu Sans Mono} | ||
-\setlength{\\tymin}{45pt} | ||
+\setlength{\tymin}{45pt} | ||
''', | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters