summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs/manual.cls
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-05 15:19:56 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-05 15:19:56 (GMT)
commit8bdf0bf7055250ac4a63fb420a236407fbadcf20 (patch)
tree589edb5d91f442a223c17c4a68106330eaf32168 /Doc/texinputs/manual.cls
parent82de71dae8a02fce9e936fd84066ba751bf05235 (diff)
downloadcpython-8bdf0bf7055250ac4a63fb420a236407fbadcf20.zip
cpython-8bdf0bf7055250ac4a63fb420a236407fbadcf20.tar.gz
cpython-8bdf0bf7055250ac4a63fb420a236407fbadcf20.tar.bz2
Fix PDF generation.
The \\ introduced in the \author in boilerplate.tex broke the PDF generation because line breaks are not allowed in the "Document Info" metadata stored in the PDF file. This changes the line break to a ", " (comma-space) in that context.
Diffstat (limited to 'Doc/texinputs/manual.cls')
-rw-r--r--Doc/texinputs/manual.cls8
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls
index 45939c9..789cae1 100644
--- a/Doc/texinputs/manual.cls
+++ b/Doc/texinputs/manual.cls
@@ -63,12 +63,16 @@
\let\footnotesize\small
\let\footnoterule\relax
\py@doHorizontalRule%
- \@ifundefined{pdfinfo}{}{
+ \@ifundefined{pdfinfo}{}{{
+ % This \def is required to deal with multi-line authors; it
+ % changes \\ to ', ' (comma-space), making it pass muster for
+ % generating document info in the PDF file.
+ \def\\{, }
\pdfinfo{
/Author (\@author)
/Title (\@title)
}
- }
+ }}
\begin{flushright}%
{\rm\Huge\py@HeaderFamily \@title \par}%
{\em\LARGE\py@HeaderFamily \py@release \par}