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:
0d082a4
)
LaTeX-Druck: Unicode-Control-Zeichen und nicht druckbare Zeichen entfernen
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 19 Jan 2018 10:21:44 +0000
(11:21 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Fri, 19 Jan 2018 10:25:16 +0000
(11:25 +0100)
Filtert z.B. das »bidirectional left-to-right«-Kontroll-Zeichen raus,
an dem sich LaTeX verschluckt.
SL/Template/LaTeX.pm
patch
|
blob
|
history
diff --git
a/SL/Template/LaTeX.pm
b/SL/Template/LaTeX.pm
index
c85529c
..
da0967b
100644
(file)
--- a/
SL/Template/LaTeX.pm
+++ b/
SL/Template/LaTeX.pm
@@
-123,6
+123,9
@@
sub format_string {
// $formatters{ $self->{default_content_type} }
// $formatters{ text };
+ $content =~ s{[^\p{Print}]|\p{Cf}}{}g;
+ $variable =~ s{[^\p{Print}]|\p{Cf}}{}g;
+
return $formatter->($self, $content, variable => $variable);
}