[Python-checkins] CVS: python/dist/src/Doc/texinputs howto.cls,1.10,1.11 manual.cls,1.16,1.17

Fred L. Drake python-dev@python.org
Tue, 5 Sep 2000 08:20:01 -0700


Update of /cvsroot/python/python/dist/src/Doc/texinputs
In directory slayer.i.sourceforge.net:/tmp/cvs-serv29072/texinputs

Modified Files:
	howto.cls manual.cls 
Log Message:

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.


Index: howto.cls
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/howto.cls,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** howto.cls	1999/06/29 18:15:59	1.10
--- howto.cls	2000/09/05 15:19:56	1.11
***************
*** 49,58 ****
  \renewcommand{\maketitle}{
    \py@doHorizontalRule
!   \@ifundefined{pdfinfo}{}{
      \pdfinfo{
        /Author (\@author)
        /Title (\@title)
      }
!   }
    \begin{flushright}
      {\rm\Huge\py@HeaderFamily \@title} \par
--- 49,62 ----
  \renewcommand{\maketitle}{
    \py@doHorizontalRule
!   \@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

Index: manual.cls
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/manual.cls,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** manual.cls	1999/06/29 18:15:59	1.16
--- manual.cls	2000/09/05 15:19:56	1.17
***************
*** 64,73 ****
      \let\footnoterule\relax
      \py@doHorizontalRule%
!     \@ifundefined{pdfinfo}{}{
        \pdfinfo{
          /Author (\@author)
          /Title (\@title)
        }
!     }
      \begin{flushright}%
        {\rm\Huge\py@HeaderFamily \@title \par}%
--- 64,77 ----
      \let\footnoterule\relax
      \py@doHorizontalRule%
!     \@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}%