From fe256431922c44375fa1e6c21bca69f5cb65481d Mon Sep 17 00:00:00 2001
From: Fred Drake <fdrake@acm.org>
Date: Fri, 29 Jul 2005 17:17:19 +0000
Subject: use a test for PDF support that is more portable across teTeX major
 versions (closes SF bug #1238210)

---
 Doc/texinputs/howto.cls  | 6 ++++--
 Doc/texinputs/manual.cls | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Doc/texinputs/howto.cls b/Doc/texinputs/howto.cls
index 936e1fa..c9beb4a 100644
--- a/Doc/texinputs/howto.cls
+++ b/Doc/texinputs/howto.cls
@@ -50,7 +50,8 @@
 %
 \renewcommand{\maketitle}{
   \py@doHorizontalRule
-  \@ifundefined{pdfinfo}{}{{
+  \ifpdf
+    \begingroup
     % 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.
@@ -59,7 +60,8 @@
       /Author (\@author)
       /Title (\@title)
     }
-  }}
+    \endgroup
+  \fi
   \begin{flushright}
     {\rm\Huge\py@HeaderFamily \@title} \par
     {\em\large\py@HeaderFamily \py@release\releaseinfo} \par
diff --git a/Doc/texinputs/manual.cls b/Doc/texinputs/manual.cls
index e28d87f..ddaa404 100644
--- a/Doc/texinputs/manual.cls
+++ b/Doc/texinputs/manual.cls
@@ -64,7 +64,8 @@
     \let\footnotesize\small
     \let\footnoterule\relax
     \py@doHorizontalRule%
-    \@ifundefined{pdfinfo}{}{{
+    \ifpdf
+      \begingroup
       % 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.
@@ -73,7 +74,8 @@
         /Author (\@author)
         /Title (\@title)
       }
-    }}
+      \endgroup
+    \fi
     \begin{flushright}%
       {\rm\Huge\py@HeaderFamily \@title \par}%
       {\em\LARGE\py@HeaderFamily \py@release\releaseinfo \par}
-- 
cgit v0.12

