[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Fri, 06 Feb 2004 20:59:50 -0000
sakharuk Fri Feb 6 15:59:50 2004 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
Added line #414 and now it's possible to print ###, ##, ...
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.300 loncom/xml/lonxml.pm:1.301
--- loncom/xml/lonxml.pm:1.300 Thu Feb 5 16:00:15 2004
+++ loncom/xml/lonxml.pm Fri Feb 6 15:59:50 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.300 2004/02/05 21:00:15 albertel Exp $
+# $Id: lonxml.pm,v 1.301 2004/02/06 20:59:50 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -411,6 +411,7 @@
# { or α
$string=~s/(&(?!((\#[0-9]+)|([a-z]+));))/\\$1/gi;
$string=~s/([^&])\#/$1\\#/g;
+ $string=~s/([^\\])\#/$1\\#/g;
$string=~s/(\$|_|{|})/\\$1/g;
$string=~s/\\char92 /\\texttt{\\char92}/g;
$string=~s/(>|<)/\$$1\$/g; #more or less