From: Fred Drake Date: Tue, 5 Sep 2000 15:19:56 +0000 (+0000) Subject: Fix PDF generation. X-Git-Tag: v2.0b1~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8bdf0bf7055250ac4a63fb420a236407fbadcf20;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Doc/texinputs/howto.cls b/Doc/texinputs/howto.cls index 127edc4a2d90..33db125ff206 100644 --- a/Doc/texinputs/howto.cls +++ b/Doc/texinputs/howto.cls @@ -48,12 +48,16 @@ % \renewcommand{\maketitle}{ \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 diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls index 45939c9ca7fc..789cae138047 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}