We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Ugly unicode pprint output in the pdf docs
Examples from the tutorial introduction:

![1](https://user-images.githubusercontent.com/2155800/50540201-955ab980-0b9e-11e9-878a-5a52a59d9869.png)


Note additional padding around symbols and other mess.

See also [this](https://github.com/diofant/diofant/issues/744#issuecomment-450215143).

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `docs/conf.py`
Content:
```
1 #
2 # Diofant documentation build configuration file.
3 #
4 # This file is execfile()d with the current directory set to its
5 # containing dir.
6 #
7 # The contents of this file are pickled, so don't put values in the
8 # namespace that aren't pickleable (module imports are okay, they're
9 # removed automatically).
10 #
11 
12 import inspect
13 import os
14 import sys
15 import warnings
16 
17 import diofant
18 
19 
20 # Turns numpydoc's section warnings to exceptions, see numpy/numpydoc#58.
21 warnings.simplefilter('error', UserWarning)
22 
23 # Add any Sphinx extension module names here, as strings.
24 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode', 'sphinx.ext.mathjax',
25               'sphinx.ext.graphviz', 'sphinx.ext.intersphinx',
26               'sphinx.ext.extlinks', 'sphinx.ext.napoleon',
27               'sphinxcontrib.bibtex']
28 
29 napoleon_google_docstring = False
30 napoleon_use_param = False
31 napoleon_use_rtype = False
32 
33 # Sphinx will warn about all references where the target cannot be found.
34 nitpicky = True
35 
36 # Glob-style patterns that should be excluded when looking for sources.
37 exclude_patterns = ['README.rst']
38 
39 # The document name of the "master" document, that is, the document
40 # that contains the root toctree directive.
41 master_doc = 'index'
42 
43 # Project information.
44 project = 'Diofant'
45 copyright = '2006-2018 SymPy Development Team, 2013-2019 Sergey B Kirpichev'
46 version = diofant.__version__
47 release = version
48 
49 # The name of default reST role, that is, for text marked up `like this`.
50 default_role = 'math'
51 
52 # The theme to use for HTML and HTML Help pages.
53 html_theme = 'sphinx_rtd_theme'
54 
55 # The LaTeX engine to build the docs.
56 latex_engine = 'xelatex'
57 
58 # If True, the PDF build from the LaTeX files created by Sphinx will use xindy
59 # rather than makeindex.
60 latex_use_xindy = False
61 
62 # This value determines how to group the document tree into LaTeX source
63 # files.  It must be a list of tuples (startdocname, targetname, title,
64 # author, documentclass, toctree_only),
65 latex_documents = [('index', 'diofant.tex', 'Diofant Documentation',
66                     'Diofant Development Team', 'manual', True)]
67 
68 # A dictionary that contains LaTeX snippets that override predefined.
69 latex_elements = {
70     'preamble':  r'''
71 \setmainfont{DejaVu Serif}
72 \setsansfont{DejaVu Sans}
73 \setmonofont{DejaVu Sans Mono}
74 % redefine \LaTeX to be usable in math mode
75 \expandafter\def\expandafter\LaTeX\expandafter{\expandafter\text\expandafter{\LaTeX}}
76 '''
77 }
78 
79 # Add page references after internal references.
80 latex_show_pagerefs = True
81 
82 # The output format for Graphviz when building HTML files.
83 graphviz_output_format = 'svg'
84 
85 # Contains mapping the locations and names of other projects that
86 # should be linked to in this documentation.
87 intersphinx_mapping = {
88     'python3': ('https://docs.python.org/3/', None),
89     'numpy': ('https://docs.scipy.org/doc/numpy', None),
90     'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
91 }
92 
93 # Dictionary of external sites, mapping unique short alias names to a
94 # base URL and a prefix.
95 extlinks = {
96     'issue': ('https://github.com/diofant/diofant/issues/%s', '#'),
97     'pull': ('https://github.com/diofant/diofant/pull/%s', '#'),
98     'commit': ('https://github.com/diofant/diofant/commit/%s', ''),
99     'sympyissue': ('https://github.com/sympy/sympy/issues/%s', 'sympy/sympy#'),
100     'sympypull': ('https://github.com/sympy/sympy/pull/%s', 'sympy/sympy#'),
101 }
102 
103 # The number of times the linkcheck builder will attempt to check a URL
104 # before declaring it broken.
105 linkcheck_retries = 3
106 
107 # A list of regular expressions that match URIs that should not be checked.
108 linkcheck_ignore = [r'https://primes.utm.edu/notes/gaps.html',
109                     r'https://primes.utm.edu/glossary/xpage/BertrandsPostulate.html',
110                     r'https://primes.utm.edu/prove/prove2_3.html',
111                     r'https://primes.utm.edu/glossary/xpage/Pseudoprime.html']
112 
113 # This value controls if docstring for classes or methods, if not explicitly
114 # set, is inherited form parents.
115 autodoc_inherit_docstrings = False
116 
117 # A list of paths that contain custom static files.  Relative paths are taken as
118 # relative to the configuration directory.  They are copied to the output’s
119 # _static directory.
120 html_static_path = ['_static']
121 
122 # These paths are either relative to html_static_path
123 # or fully qualified paths (eg. https://...)
124 html_css_files = [
125     'custom.css',
126 ]
127 
128 # A list of paths that contain extra files not directly related to the
129 # documentation, such as robots.txt or .htaccess.  Relative paths are taken
130 # as relative to the configuration directory.  They are copied to the
131 # output directory. They will overwrite any existing file of the same name.
132 html_extra_path = ['robots.txt']
133 
134 # Should we show "Created using Sphinx" in the HTML footer?
135 html_show_sphinx = False
136 
137 # Paths to the logo and favicon.ico, relative to the conf.py's directory.
138 html_logo = '_static/logo.svg'
139 html_favicon = '_static/favicon.ico'
140 latex_logo = '_static/logo.png'
141 
142 # Theme-specific options.
143 html_theme_options = {
144     'logo_only': True,
145     'display_version': False,
146     'analytics_id': 'UA-147167689-1',
147 }
148 
149 # The inline configuration options for mathjax.  The value is used as
150 # a parameter of MathJax.Hub.Config().
151 mathjax_config = {
152     'CommonHTML': {'linebreaks': {'automatic': True}},
153     'HTML-CSS': {'linebreaks': {'automatic': True}},
154     'SVG': {'linebreaks': {'automatic': True}},
155 }
156 
157 
158 def linkcode_resolve(domain, info):
159     """Determine the URL corresponding to Python object. """
160     if domain != 'py':
161         return
162 
163     modname = info['module']
164     fullname = info['fullname']
165 
166     submod = sys.modules.get(modname)
167     if submod is None:
168         return
169 
170     obj = submod
171     for part in fullname.split('.'):
172         try:
173             obj = getattr(obj, part)
174         except Exception:
175             return
176 
177     # strip decorators, which would resolve to the source of the decorator
178     # possibly an upstream bug in getsourcefile, bpo-1764286
179     try:
180         unwrap = inspect.unwrap
181     except AttributeError:
182         pass
183     else:
184         obj = unwrap(obj)
185 
186     try:
187         fn = inspect.getsourcefile(obj)
188     except Exception:
189         fn = None
190     if not fn:
191         return
192 
193     try:
194         source, lineno = inspect.getsourcelines(obj)
195     except Exception:
196         lineno = None
197 
198     if lineno:
199         linespec = "#L%d-L%d" % (lineno, lineno + len(source) - 1)
200     else:
201         linespec = ""
202 
203     fn = os.path.relpath(fn, start=os.path.dirname(diofant.__file__))
204 
205     blobpath = "https://github.com/diofant/diofant/blob/"
206     if 'dev' in version:
207         return blobpath + "master/diofant/%s%s" % (fn, linespec)
208     else:
209         return blobpath + "v%s/diofant/%s%s" % (version, fn, linespec)
210
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/docs/conf.py b/docs/conf.py
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,6 +14,8 @@
 import sys
 import warnings
 
+import sphinx.util.texescape
+
 import diofant
 
 
@@ -67,12 +69,16 @@
 
 # A dictionary that contains LaTeX snippets that override predefined.
 latex_elements = {
-    'preamble':  r'''
+    'fontpkg': r'''
 \setmainfont{DejaVu Serif}
 \setsansfont{DejaVu Sans}
 \setmonofont{DejaVu Sans Mono}
+''',
+    'preamble':  r'''
 % redefine \LaTeX to be usable in math mode
 \expandafter\def\expandafter\LaTeX\expandafter{\expandafter\text\expandafter{\LaTeX}}
+
+\fvset{formatcom=\baselineskip10pt\relax\let\strut\empty}
 '''
 }
 
@@ -207,3 +213,7 @@
         return blobpath + "master/diofant/%s%s" % (fn, linespec)
     else:
         return blobpath + "v%s/diofant/%s%s" % (version, fn, linespec)
+
+
+# monkey-patch sphinx
+del sphinx.util.texescape.tex_replacements[29:]

{"golden_diff": "diff --git a/docs/conf.py b/docs/conf.py\n--- a/docs/conf.py\n+++ b/docs/conf.py\n@@ -14,6 +14,8 @@\n import sys\n import warnings\n \n+import sphinx.util.texescape\n+\n import diofant\n \n \n@@ -67,12 +69,16 @@\n \n # A dictionary that contains LaTeX snippets that override predefined.\n latex_elements = {\n-    'preamble':  r'''\n+    'fontpkg': r'''\n \\setmainfont{DejaVu Serif}\n \\setsansfont{DejaVu Sans}\n \\setmonofont{DejaVu Sans Mono}\n+''',\n+    'preamble':  r'''\n % redefine \\LaTeX to be usable in math mode\n \\expandafter\\def\\expandafter\\LaTeX\\expandafter{\\expandafter\\text\\expandafter{\\LaTeX}}\n+\n+\\fvset{formatcom=\\baselineskip10pt\\relax\\let\\strut\\empty}\n '''\n }\n \n@@ -207,3 +213,7 @@\n         return blobpath + \"master/diofant/%s%s\" % (fn, linespec)\n     else:\n         return blobpath + \"v%s/diofant/%s%s\" % (version, fn, linespec)\n+\n+\n+# monkey-patch sphinx\n+del sphinx.util.texescape.tex_replacements[29:]\n", "issue": "Ugly unicode pprint output in the pdf docs\nExamples from the tutorial introduction:\r\n\r\n![1](https://user-images.githubusercontent.com/2155800/50540201-955ab980-0b9e-11e9-878a-5a52a59d9869.png)\r\n\r\n\r\nNote additional padding around symbols and other mess.\r\n\r\nSee also [this](https://github.com/diofant/diofant/issues/744#issuecomment-450215143).\n", "before_files": [{"content": "#\n# Diofant documentation build configuration file.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# The contents of this file are pickled, so don't put values in the\n# namespace that aren't pickleable (module imports are okay, they're\n# removed automatically).\n#\n\nimport inspect\nimport os\nimport sys\nimport warnings\n\nimport diofant\n\n\n# Turns numpydoc's section warnings to exceptions, see numpy/numpydoc#58.\nwarnings.simplefilter('error', UserWarning)\n\n# Add any Sphinx extension module names here, as strings.\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode', 'sphinx.ext.mathjax',\n              'sphinx.ext.graphviz', 'sphinx.ext.intersphinx',\n              'sphinx.ext.extlinks', 'sphinx.ext.napoleon',\n              'sphinxcontrib.bibtex']\n\nnapoleon_google_docstring = False\nnapoleon_use_param = False\nnapoleon_use_rtype = False\n\n# Sphinx will warn about all references where the target cannot be found.\nnitpicky = True\n\n# Glob-style patterns that should be excluded when looking for sources.\nexclude_patterns = ['README.rst']\n\n# The document name of the \"master\" document, that is, the document\n# that contains the root toctree directive.\nmaster_doc = 'index'\n\n# Project information.\nproject = 'Diofant'\ncopyright = '2006-2018 SymPy Development Team, 2013-2019 Sergey B Kirpichev'\nversion = diofant.__version__\nrelease = version\n\n# The name of default reST role, that is, for text marked up `like this`.\ndefault_role = 'math'\n\n# The theme to use for HTML and HTML Help pages.\nhtml_theme = 'sphinx_rtd_theme'\n\n# The LaTeX engine to build the docs.\nlatex_engine = 'xelatex'\n\n# If True, the PDF build from the LaTeX files created by Sphinx will use xindy\n# rather than makeindex.\nlatex_use_xindy = False\n\n# This value determines how to group the document tree into LaTeX source\n# files.  It must be a list of tuples (startdocname, targetname, title,\n# author, documentclass, toctree_only),\nlatex_documents = [('index', 'diofant.tex', 'Diofant Documentation',\n                    'Diofant Development Team', 'manual', True)]\n\n# A dictionary that contains LaTeX snippets that override predefined.\nlatex_elements = {\n    'preamble':  r'''\n\\setmainfont{DejaVu Serif}\n\\setsansfont{DejaVu Sans}\n\\setmonofont{DejaVu Sans Mono}\n% redefine \\LaTeX to be usable in math mode\n\\expandafter\\def\\expandafter\\LaTeX\\expandafter{\\expandafter\\text\\expandafter{\\LaTeX}}\n'''\n}\n\n# Add page references after internal references.\nlatex_show_pagerefs = True\n\n# The output format for Graphviz when building HTML files.\ngraphviz_output_format = 'svg'\n\n# Contains mapping the locations and names of other projects that\n# should be linked to in this documentation.\nintersphinx_mapping = {\n    'python3': ('https://docs.python.org/3/', None),\n    'numpy': ('https://docs.scipy.org/doc/numpy', None),\n    'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),\n}\n\n# Dictionary of external sites, mapping unique short alias names to a\n# base URL and a prefix.\nextlinks = {\n    'issue': ('https://github.com/diofant/diofant/issues/%s', '#'),\n    'pull': ('https://github.com/diofant/diofant/pull/%s', '#'),\n    'commit': ('https://github.com/diofant/diofant/commit/%s', ''),\n    'sympyissue': ('https://github.com/sympy/sympy/issues/%s', 'sympy/sympy#'),\n    'sympypull': ('https://github.com/sympy/sympy/pull/%s', 'sympy/sympy#'),\n}\n\n# The number of times the linkcheck builder will attempt to check a URL\n# before declaring it broken.\nlinkcheck_retries = 3\n\n# A list of regular expressions that match URIs that should not be checked.\nlinkcheck_ignore = [r'https://primes.utm.edu/notes/gaps.html',\n                    r'https://primes.utm.edu/glossary/xpage/BertrandsPostulate.html',\n                    r'https://primes.utm.edu/prove/prove2_3.html',\n                    r'https://primes.utm.edu/glossary/xpage/Pseudoprime.html']\n\n# This value controls if docstring for classes or methods, if not explicitly\n# set, is inherited form parents.\nautodoc_inherit_docstrings = False\n\n# A list of paths that contain custom static files.  Relative paths are taken as\n# relative to the configuration directory.  They are copied to the output\u2019s\n# _static directory.\nhtml_static_path = ['_static']\n\n# These paths are either relative to html_static_path\n# or fully qualified paths (eg. https://...)\nhtml_css_files = [\n    'custom.css',\n]\n\n# A list of paths that contain extra files not directly related to the\n# documentation, such as robots.txt or .htaccess.  Relative paths are taken\n# as relative to the configuration directory.  They are copied to the\n# output directory. They will overwrite any existing file of the same name.\nhtml_extra_path = ['robots.txt']\n\n# Should we show \"Created using Sphinx\" in the HTML footer?\nhtml_show_sphinx = False\n\n# Paths to the logo and favicon.ico, relative to the conf.py's directory.\nhtml_logo = '_static/logo.svg'\nhtml_favicon = '_static/favicon.ico'\nlatex_logo = '_static/logo.png'\n\n# Theme-specific options.\nhtml_theme_options = {\n    'logo_only': True,\n    'display_version': False,\n    'analytics_id': 'UA-147167689-1',\n}\n\n# The inline configuration options for mathjax.  The value is used as\n# a parameter of MathJax.Hub.Config().\nmathjax_config = {\n    'CommonHTML': {'linebreaks': {'automatic': True}},\n    'HTML-CSS': {'linebreaks': {'automatic': True}},\n    'SVG': {'linebreaks': {'automatic': True}},\n}\n\n\ndef linkcode_resolve(domain, info):\n    \"\"\"Determine the URL corresponding to Python object. \"\"\"\n    if domain != 'py':\n        return\n\n    modname = info['module']\n    fullname = info['fullname']\n\n    submod = sys.modules.get(modname)\n    if submod is None:\n        return\n\n    obj = submod\n    for part in fullname.split('.'):\n        try:\n            obj = getattr(obj, part)\n        except Exception:\n            return\n\n    # strip decorators, which would resolve to the source of the decorator\n    # possibly an upstream bug in getsourcefile, bpo-1764286\n    try:\n        unwrap = inspect.unwrap\n    except AttributeError:\n        pass\n    else:\n        obj = unwrap(obj)\n\n    try:\n        fn = inspect.getsourcefile(obj)\n    except Exception:\n        fn = None\n    if not fn:\n        return\n\n    try:\n        source, lineno = inspect.getsourcelines(obj)\n    except Exception:\n        lineno = None\n\n    if lineno:\n        linespec = \"#L%d-L%d\" % (lineno, lineno + len(source) - 1)\n    else:\n        linespec = \"\"\n\n    fn = os.path.relpath(fn, start=os.path.dirname(diofant.__file__))\n\n    blobpath = \"https://github.com/diofant/diofant/blob/\"\n    if 'dev' in version:\n        return blobpath + \"master/diofant/%s%s\" % (fn, linespec)\n    else:\n        return blobpath + \"v%s/diofant/%s%s\" % (version, fn, linespec)\n", "path": "docs/conf.py"}], "after_files": [{"content": "#\n# Diofant documentation build configuration file.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# The contents of this file are pickled, so don't put values in the\n# namespace that aren't pickleable (module imports are okay, they're\n# removed automatically).\n#\n\nimport inspect\nimport os\nimport sys\nimport warnings\n\nimport sphinx.util.texescape\n\nimport diofant\n\n\n# Turns numpydoc's section warnings to exceptions, see numpy/numpydoc#58.\nwarnings.simplefilter('error', UserWarning)\n\n# Add any Sphinx extension module names here, as strings.\nextensions = ['sphinx.ext.autodoc', 'sphinx.ext.linkcode', 'sphinx.ext.mathjax',\n              'sphinx.ext.graphviz', 'sphinx.ext.intersphinx',\n              'sphinx.ext.extlinks', 'sphinx.ext.napoleon',\n              'sphinxcontrib.bibtex']\n\nnapoleon_google_docstring = False\nnapoleon_use_param = False\nnapoleon_use_rtype = False\n\n# Sphinx will warn about all references where the target cannot be found.\nnitpicky = True\n\n# Glob-style patterns that should be excluded when looking for sources.\nexclude_patterns = ['README.rst']\n\n# The document name of the \"master\" document, that is, the document\n# that contains the root toctree directive.\nmaster_doc = 'index'\n\n# Project information.\nproject = 'Diofant'\ncopyright = '2006-2018 SymPy Development Team, 2013-2019 Sergey B Kirpichev'\nversion = diofant.__version__\nrelease = version\n\n# The name of default reST role, that is, for text marked up `like this`.\ndefault_role = 'math'\n\n# The theme to use for HTML and HTML Help pages.\nhtml_theme = 'sphinx_rtd_theme'\n\n# The LaTeX engine to build the docs.\nlatex_engine = 'xelatex'\n\n# If True, the PDF build from the LaTeX files created by Sphinx will use xindy\n# rather than makeindex.\nlatex_use_xindy = False\n\n# This value determines how to group the document tree into LaTeX source\n# files.  It must be a list of tuples (startdocname, targetname, title,\n# author, documentclass, toctree_only),\nlatex_documents = [('index', 'diofant.tex', 'Diofant Documentation',\n                    'Diofant Development Team', 'manual', True)]\n\n# A dictionary that contains LaTeX snippets that override predefined.\nlatex_elements = {\n    'fontpkg': r'''\n\\setmainfont{DejaVu Serif}\n\\setsansfont{DejaVu Sans}\n\\setmonofont{DejaVu Sans Mono}\n''',\n    'preamble':  r'''\n% redefine \\LaTeX to be usable in math mode\n\\expandafter\\def\\expandafter\\LaTeX\\expandafter{\\expandafter\\text\\expandafter{\\LaTeX}}\n\n\\fvset{formatcom=\\baselineskip10pt\\relax\\let\\strut\\empty}\n'''\n}\n\n# Add page references after internal references.\nlatex_show_pagerefs = True\n\n# The output format for Graphviz when building HTML files.\ngraphviz_output_format = 'svg'\n\n# Contains mapping the locations and names of other projects that\n# should be linked to in this documentation.\nintersphinx_mapping = {\n    'python3': ('https://docs.python.org/3/', None),\n    'numpy': ('https://docs.scipy.org/doc/numpy', None),\n    'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),\n}\n\n# Dictionary of external sites, mapping unique short alias names to a\n# base URL and a prefix.\nextlinks = {\n    'issue': ('https://github.com/diofant/diofant/issues/%s', '#'),\n    'pull': ('https://github.com/diofant/diofant/pull/%s', '#'),\n    'commit': ('https://github.com/diofant/diofant/commit/%s', ''),\n    'sympyissue': ('https://github.com/sympy/sympy/issues/%s', 'sympy/sympy#'),\n    'sympypull': ('https://github.com/sympy/sympy/pull/%s', 'sympy/sympy#'),\n}\n\n# The number of times the linkcheck builder will attempt to check a URL\n# before declaring it broken.\nlinkcheck_retries = 3\n\n# A list of regular expressions that match URIs that should not be checked.\nlinkcheck_ignore = [r'https://primes.utm.edu/notes/gaps.html',\n                    r'https://primes.utm.edu/glossary/xpage/BertrandsPostulate.html',\n                    r'https://primes.utm.edu/prove/prove2_3.html',\n                    r'https://primes.utm.edu/glossary/xpage/Pseudoprime.html']\n\n# This value controls if docstring for classes or methods, if not explicitly\n# set, is inherited form parents.\nautodoc_inherit_docstrings = False\n\n# A list of paths that contain custom static files.  Relative paths are taken as\n# relative to the configuration directory.  They are copied to the output\u2019s\n# _static directory.\nhtml_static_path = ['_static']\n\n# These paths are either relative to html_static_path\n# or fully qualified paths (eg. https://...)\nhtml_css_files = [\n    'custom.css',\n]\n\n# A list of paths that contain extra files not directly related to the\n# documentation, such as robots.txt or .htaccess.  Relative paths are taken\n# as relative to the configuration directory.  They are copied to the\n# output directory. They will overwrite any existing file of the same name.\nhtml_extra_path = ['robots.txt']\n\n# Should we show \"Created using Sphinx\" in the HTML footer?\nhtml_show_sphinx = False\n\n# Paths to the logo and favicon.ico, relative to the conf.py's directory.\nhtml_logo = '_static/logo.svg'\nhtml_favicon = '_static/favicon.ico'\nlatex_logo = '_static/logo.png'\n\n# Theme-specific options.\nhtml_theme_options = {\n    'logo_only': True,\n    'display_version': False,\n    'analytics_id': 'UA-147167689-1',\n}\n\n# The inline configuration options for mathjax.  The value is used as\n# a parameter of MathJax.Hub.Config().\nmathjax_config = {\n    'CommonHTML': {'linebreaks': {'automatic': True}},\n    'HTML-CSS': {'linebreaks': {'automatic': True}},\n    'SVG': {'linebreaks': {'automatic': True}},\n}\n\n\ndef linkcode_resolve(domain, info):\n    \"\"\"Determine the URL corresponding to Python object. \"\"\"\n    if domain != 'py':\n        return\n\n    modname = info['module']\n    fullname = info['fullname']\n\n    submod = sys.modules.get(modname)\n    if submod is None:\n        return\n\n    obj = submod\n    for part in fullname.split('.'):\n        try:\n            obj = getattr(obj, part)\n        except Exception:\n            return\n\n    # strip decorators, which would resolve to the source of the decorator\n    # possibly an upstream bug in getsourcefile, bpo-1764286\n    try:\n        unwrap = inspect.unwrap\n    except AttributeError:\n        pass\n    else:\n        obj = unwrap(obj)\n\n    try:\n        fn = inspect.getsourcefile(obj)\n    except Exception:\n        fn = None\n    if not fn:\n        return\n\n    try:\n        source, lineno = inspect.getsourcelines(obj)\n    except Exception:\n        lineno = None\n\n    if lineno:\n        linespec = \"#L%d-L%d\" % (lineno, lineno + len(source) - 1)\n    else:\n        linespec = \"\"\n\n    fn = os.path.relpath(fn, start=os.path.dirname(diofant.__file__))\n\n    blobpath = \"https://github.com/diofant/diofant/blob/\"\n    if 'dev' in version:\n        return blobpath + \"master/diofant/%s%s\" % (fn, linespec)\n    else:\n        return blobpath + \"v%s/diofant/%s%s\" % (version, fn, linespec)\n\n\n# monkey-patch sphinx\ndel sphinx.util.texescape.tex_replacements[29:]\n", "path": "docs/conf.py"}]}