From: Fred Drake Date: Fri, 25 Oct 1996 22:13:59 +0000 (+0000) Subject: (texi2html.py): Minor improvement to HTML 3.0 output for code examples. X-Git-Tag: v1.5a1~969 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abcb38250b3d743f48463b34757cd4f6dc77ce34;p=thirdparty%2FPython%2Fcpython.git (texi2html.py): Minor improvement to HTML 3.0 output for code examples. --- diff --git a/Doc/texi2html.py b/Doc/texi2html.py index d1c1a746b41b..22aa1fb834a7 100644 --- a/Doc/texi2html.py +++ b/Doc/texi2html.py @@ -1269,7 +1269,7 @@ class TexinfoParser: self.nofill = self.nofill + 1 self.write('
')
     def end_example(self):
-	self.write('
') + self.write('\n') self.nofill = self.nofill - 1 bgn_lisp = bgn_example # Synonym when contents are executable lisp code @@ -1434,8 +1434,13 @@ class TexinfoParserHTML3(TexinfoParser): def end_quotation(self): self.write('\n') def bgn_example(self, args): + # this use of would not be legal in HTML 2.0, + # but is in more recent DTDs. self.nofill = self.nofill + 1 - self.write('
')
+	self.write('
')
+    def end_example(self):
+	self.write("
\n") + self.nofill = self.nofill - 1 def bgn_flushleft(self, args): self.nofill = self.nofill + 1 diff --git a/Doc/tools/texi2html.py b/Doc/tools/texi2html.py index d1c1a746b41b..22aa1fb834a7 100644 --- a/Doc/tools/texi2html.py +++ b/Doc/tools/texi2html.py @@ -1269,7 +1269,7 @@ class TexinfoParser: self.nofill = self.nofill + 1 self.write('
')
     def end_example(self):
-	self.write('
') + self.write('
\n') self.nofill = self.nofill - 1 bgn_lisp = bgn_example # Synonym when contents are executable lisp code @@ -1434,8 +1434,13 @@ class TexinfoParserHTML3(TexinfoParser): def end_quotation(self): self.write('\n') def bgn_example(self, args): + # this use of would not be legal in HTML 2.0, + # but is in more recent DTDs. self.nofill = self.nofill + 1 - self.write('
')
+	self.write('
')
+    def end_example(self):
+	self.write("
\n") + self.nofill = self.nofill - 1 def bgn_flushleft(self, args): self.nofill = self.nofill + 1 diff --git a/Tools/scripts/texi2html.py b/Tools/scripts/texi2html.py index d1c1a746b41b..22aa1fb834a7 100755 --- a/Tools/scripts/texi2html.py +++ b/Tools/scripts/texi2html.py @@ -1269,7 +1269,7 @@ class TexinfoParser: self.nofill = self.nofill + 1 self.write('
')
     def end_example(self):
-	self.write('
') + self.write('
\n') self.nofill = self.nofill - 1 bgn_lisp = bgn_example # Synonym when contents are executable lisp code @@ -1434,8 +1434,13 @@ class TexinfoParserHTML3(TexinfoParser): def end_quotation(self): self.write('\n') def bgn_example(self, args): + # this use of would not be legal in HTML 2.0, + # but is in more recent DTDs. self.nofill = self.nofill + 1 - self.write('
')
+	self.write('
')
+    def end_example(self):
+	self.write("
\n") + self.nofill = self.nofill - 1 def bgn_flushleft(self, args): self.nofill = self.nofill + 1