projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Auslagern des HTML-Codes aus login.pl in HTML-Vorlagen.
[kivitendo-erp.git]
/
SL
/
Template
/
Plugin
/
LxERP.pm
diff --git
a/SL/Template/Plugin/LxERP.pm
b/SL/Template/Plugin/LxERP.pm
index
a97344a
..
ed2287b
100644
(file)
--- a/
SL/Template/Plugin/LxERP.pm
+++ b/
SL/Template/Plugin/LxERP.pm
@@
-23,5
+23,14
@@
sub format_percent {
return $self->format_amount($var * 100, $places, $skip_zero);
}
+sub escape_br {
+ my ($self, $var) = @_;
+
+ $var =~ s/\r//g;
+ $var =~ s/\n/<br>/g;
+
+ return $var;
+}
+
1;