projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Zeiger in JS Menu als Hand, wie bei den anderen Menues
[kivitendo-erp.git]
/
SL
/
Template.pm
diff --git
a/SL/Template.pm
b/SL/Template.pm
index
9e25f39
..
e4e940b
100644
(file)
--- a/
SL/Template.pm
+++ b/
SL/Template.pm
@@
-91,7
+91,7
@@
sub format_string {
'<pagebreak>',
'&', quotemeta("\n"),
'"', '\$', '%', '_', '#', quotemeta('^'),
'<pagebreak>',
'&', quotemeta("\n"),
'"', '\$', '%', '_', '#', quotemeta('^'),
- '{', '}', '<', '>', '£', "\r"
+ '{', '}', '<', '>', '£', "\r"
, '±', '\xe1',
],
quotemeta("\\") => '\\textbackslash ',
'<pagebreak>' => '',
],
quotemeta("\\") => '\\textbackslash ',
'<pagebreak>' => '',
@@
-107,6
+107,8
@@
sub format_string {
'>' => '$>$',
'£' => '\pounds ',
"\r" => "",
'>' => '$>$',
'£' => '\pounds ',
"\r" => "",
+ '±' => '$\pm$',
+ '\xe1' => '$\bullet$',
quotemeta('^') => '\^\\',
quotemeta("\n") => '\newline '
);
quotemeta('^') => '\^\\',
quotemeta("\n") => '\newline '
);
@@
-124,6
+126,8
@@
sub format_string {
$variable =~ s/\$\<\$${key}\$\>\$(.*?)\$<\$\/${key}\$>\$/\\${new}\{$1\}/gi;
}
$variable =~ s/\$\<\$${key}\$\>\$(.*?)\$<\$\/${key}\$>\$/\\${new}\{$1\}/gi;
}
+ $variable =~ s/[\x00-\x1f]//g;
+
return $variable;
}
return $variable;
}
@@
-1307,16
+1311,17
@@
sub format_string {
sub get_mime_type() {
my ($self) = @_;
sub get_mime_type() {
my ($self) = @_;
- if ($self->{"form"}->{"format"} =~ /
xml
/i) {
+ if ($self->{"form"}->{"format"} =~ /
elsterwinston
/i) {
return "application/xml ";
return "application/xml ";
+ } elsif ($self->{"form"}->{"format"} =~ /elstertaxbird/i) {
+ return "application/x-taxbird";
} else {
} else {
- return "text
/xml
";
+ return "text";
}
}
sub uses_temp_file {
}
}
sub uses_temp_file {
-# my ($self) = @_;
- # no tempfile needet for XML Output
+ # tempfile needet for XML Output
return 1;
}
return 1;
}