shithub: freetype+ttf2subf

Download patch

ref: d18e01352c549452f924d8d942d131b6bd29b3ce
parent: 64f1ba90642db6578abe8a6dd338b176533224f6
author: Werner Lemberg <[email protected]>
date: Fri Jul 25 18:21:57 EDT 2003

(code_header, code_footer): Don't change font colour directly but
use a special <pre> class.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,8 @@
 	but use a new <span> class.
 	(section_synopsis_header, section_synopsis_footer): Don't change
 	colour.
+	(code_header, code_footer): Don't change font colour directly but
+	use a special <pre> class.
 	(print_html_field): <tr> gets the `valign' attribute, not <table>.
 	(print_html_field_list): Ditto.
 	(index_exit): Don't use <center>...</center> but `align=center'
--- a/src/tools/docmaker/tohtml.py
+++ b/src/tools/docmaker/tohtml.py
@@ -32,6 +32,8 @@
                  text-align: left;
                  white-space: pre;
                  color: darkblue; }
+
+  pre.colored { color: blue; }
 </style>
 </head>
 <body>
@@ -55,8 +57,8 @@
 
 # The header and footer used for code segments.
 #
-code_header = "<font color=blue><pre>"
-code_footer = "</pre></font>"
+code_header = '<pre class="colored">'
+code_footer = '</pre>'
 
 # Paragraph header and footer.
 #