1.4.4.stable.jcn3
---
Generated by janneke@gnu.org,
From = lilypond-1.4.4.stable.jcn2, To = lilypond-1.4.4.stable.jcn3
usage
cd lilypond-source-dir; patch -E -p1 < lilypond-1.4.4.stable.jcn3.diff
Patches do not contain automatically generated files
or (urg) empty directories,
i.e., you should rerun autoconf, configure
---- ../lilypond-1.4.4.stable.jcn1/CHANGES Fri Jun 29 18:23:09 2001
+--- ../lilypond-1.4.4.stable.jcn2/CHANGES Sun Jul 8 18:51:34 2001
+++ b/CHANGES Fri Jul 13 11:24:19 2001
+@@ -1,5 +1,7 @@
+-1.4.4.stable.jcn2
+1.4.4.stable.jcn3
+ =================
+
+* Bugfix: text2html: escape entities inside <pre>.
+
+ * Now really included lexer-gcc-3.0.patch.
+ --- ../lilypond-1.4.4.stable.jcn1/CHANGES Fri Jun 29 18:23:09 2001
++ b/CHANGES Sun Jul 8 18:51:34 2001
@@ -1,5 +1,7 @@
-1.4.4.stable.jcn1
MAJOR_VERSION=1
MINOR_VERSION=4
PATCH_LEVEL=4
-MY_PATCH_LEVEL=stable.jcn2
+MY_PATCH_LEVEL=stable.jcn3
# use the above to send patches: MY_PATCH_LEVEL is always empty for a
# released version.
#@PYTHON@
import os
+import re
import string
import sys
+
+entities = {
+ "&" : 'amp',
+ "`" : 'apos',
+ '>' : 'gt',
+ '<' : 'lt',
+ '"' : 'quot',
+ }
+
+def txt2html (s):
+ for i in entities.keys ():
+ s = re.sub (i, '\001' + entities[i] + ';', s);
+ s = re.sub ('\001', '&', s);
+ return s
+
for a in sys.argv[1:]:
# hmm, we need: text2html out/foe.txt -> out/foe.html,
# -o is a bit overkill?
<html><body><pre>
%s
</pre></body></html>
-""" % open (a).read ()
+""" % txt2html (open (a).read ())
open (outfile, 'w').write (s)