Fix build with newer Sphinx
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Sun, 3 Oct 2021 11:27:00 +0000 (12:27 +0100)
committerIlias Tsitsimpis <iliastsi@debian.org>
Sun, 3 Oct 2021 11:27:00 +0000 (12:27 +0100)
Origin: https://gitlab.haskell.org/ghc/ghc/-/commit/83407ffc7acc00cc025b9f6ed063add9ab9f9bcc
Bug-Debian: https://bugs.debian.org/995429

This is a partial cherry-pick of 83407ffc7acc00cc025b9f6ed063add9ab9f9bcc.

Gbp-Pq: Name newer-sphinx

docs/users_guide/conf.py

index 0335be6f8b45a797185e0ad8fb1eeb02ea161e54..a98a709b45d033dbeafcd259cdf1edcbffdcb861 100644 (file)
@@ -77,13 +77,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}
 ''',
 }