[COMMIT LOGREPORT] service/all/lib/Lire Utils.pm,1.63,1.64
Francis J. Lacoste
flacoste at users.sourceforge.net
Thu Sep 15 16:43:39 CEST 2005
Update of /cvsroot/logreport/service/all/lib/Lire
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19939/all/lib/Lire
Modified Files:
Utils.pm
Log Message:
Proper LaTeX escaping for ^ and ~.
Index: Utils.pm
===================================================================
RCS file: /cvsroot/logreport/service/all/lib/Lire/Utils.pm,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- Utils.pm 1 Sep 2004 15:12:04 -0000 1.63
+++ Utils.pm 15 Sep 2005 14:43:36 -0000 1.64
@@ -73,7 +73,8 @@
my $str = $_[0];
$str =~ s/\\/--LIRE--BACKSLASH--/g;
- $str =~ s/([#\$&~_^%{}])/\\$1/g;
+ $str =~ s/([#\$&_%{}])/\\$1/g;
+ $str =~ s/([~^])/\\$1\{\}/g;
$str =~ s/(\[|\]|<|>)/\$$1\$/g;
$str =~ s/--LIRE--BACKSLASH--/\$\\backslash\$/g;
--
To UNSUBSCRIBE, email to commit-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
commit-request at logreport.org
More information about the Commit
mailing list