]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix PDF generation.
authorFred Drake <fdrake@acm.org>
Tue, 5 Sep 2000 15:19:56 +0000 (15:19 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 5 Sep 2000 15:19:56 +0000 (15:19 +0000)
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.

Doc/texinputs/howto.cls
Doc/texinputs/manual.cls

index 127edc4a2d90db7047c22dee7fc47266f851c5e8..33db125ff206dc1e9944af1dd25ff4eacafef00e 100644 (file)
 %
 \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
index 45939c9ca7fc19aea983bb12ae690911e6dd885c..789cae13804738a0aba233eb7d4e2794788cfad8 100644 (file)
     \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}