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:
99ed8ab
)
Das Escapen von Ausrufezeichen darf nicht durch zwei Ausrufezeichen geschehen, weil...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 29 May 2007 14:37:36 +0000
(14:37 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 29 May 2007 14:37:36 +0000
(14:37 +0000)
Beispiel:
abc!nop -> abc!!nop -> abc!\nop
SL/MoreCommon.pm
patch
|
blob
|
history
diff --git
a/SL/MoreCommon.pm
b/SL/MoreCommon.pm
index
196702c
..
9669cdd
100644
(file)
--- a/
SL/MoreCommon.pm
+++ b/
SL/MoreCommon.pm
@@
-11,7
+11,7
@@
sub save_form {
$main::lxdebug->enter_sub();
my $old_form = YAML::Dump($main::form);
- $old_form =~ s|!|!
!
|g;
+ $old_form =~ s|!|!
:
|g;
$old_form =~ s|\n|!n|g;
$old_form =~ s|\r|!r|g;
@@
-31,7
+31,7
@@
sub restore_form {
$old_form =~ s|!r|\r|g;
$old_form =~ s|!n|\n|g;
- $old_form =~ s|!
!
|!|g;
+ $old_form =~ s|!
:
|!|g;
my $new_form = YAML::Load($old_form);
map { $form->{$_} = $new_form->{$_}; } keys %{$new_form};