summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2009-04-06 19:39:51 +0000
committerPauli Virtanen <pav@iki.fi>2009-04-06 19:39:51 +0000
commit2194af203612fd5790f9f9673e007ca411ed029a (patch)
tree9ad514aaafb964d83f10d120d0b5fa6ea1d8d7e1
parent3b1e1e3e6f3589d562d70b3cefff51f1666f6427 (diff)
downloadnumpy-2194af203612fd5790f9f9673e007ca411ed029a.tar.gz
docs: tweak latex build to recognize U+00A0 as a non-breaking space
-rwxr-xr-xdoc/postprocess.py1
-rw-r--r--doc/source/conf.py1
2 files changed, 1 insertions, 1 deletions
diff --git a/doc/postprocess.py b/doc/postprocess.py
index b7f912efe..1c6ef1b2e 100755
--- a/doc/postprocess.py
+++ b/doc/postprocess.py
@@ -44,7 +44,6 @@ def process_tex(lines):
"""
new_lines = []
for line in lines:
- line = unicode(line, 'utf-8').replace(u"\00a0", u"~").encode('utf-8')
if (line.startswith(r'\section{numpy.')
or line.startswith(r'\subsection{numpy.')
or line.startswith(r'\subsubsection{numpy.')
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 70c65207b..6261bd8bb 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -170,6 +170,7 @@ latex_documents = [
# Additional stuff for the LaTeX preamble.
latex_preamble = r'''
\usepackage{amsmath}
+\DeclareUnicodeCharacter{00A0}{\nobreakspace}
% In the parameters section, place a newline after the Parameters
% header