projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bd2361
)
Sonderzeichen hochgestellte 2 und 3 für LaTeX escapen.
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 12 Sep 2007 08:28:48 +0000
(08:28 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 12 Sep 2007 08:28:48 +0000
(08:28 +0000)
SL/Template.pm
patch
|
blob
|
history
diff --git
a/SL/Template.pm
b/SL/Template.pm
index
8693580
..
693a349
100644
(file)
--- a/
SL/Template.pm
+++ b/
SL/Template.pm
@@
-92,6
+92,8
@@
sub format_string {
'&', quotemeta("\n"),
'"', '\$', '%', '_', '#', quotemeta('^'),
'{', '}', '<', '>', '£', "\r", '±', '\xe1',
+ '²', '³',
+
],
quotemeta("\\") => '\\textbackslash ',
'<pagebreak>' => '',
@@
-110,7
+112,9
@@
sub format_string {
'±' => '$\pm$',
'\xe1' => '$\bullet$',
quotemeta('^') => '\^\\',
- quotemeta("\n") => '\newline '
+ quotemeta("\n") => '\newline ',
+ '²' => '$^2$',
+ '³' => '$^3$',
);
map({ $variable =~ s/$_/$replace{$_}/g; } @{ $replace{"order"} });