projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix format string error in gen_DXProt
[spider.git]
/
perl
/
Thingy
/
Dx.pm
diff --git
a/perl/Thingy/Dx.pm
b/perl/Thingy/Dx.pm
index dd526ea53c9eb47519b9aeac219fc1a724bbb6ff..e2f9776f2dcf0a3a4a54d70434e8975db10fd149 100644
(file)
--- a/
perl/Thingy/Dx.pm
+++ b/
perl/Thingy/Dx.pm
@@
-66,9
+66,9
@@
sub gen_DXProt
my $sd = $thing->{spotdata};
my $hops = $thing->{hops} || DXProt::get_hops(11);
my $text = $sd->[3] || ' ';
my $sd = $thing->{spotdata};
my $hops = $thing->{hops} || DXProt::get_hops(11);
my $text = $sd->[3] || ' ';
- $text =~ s/\^/%5E/g;
+ $text =~ s/\^/
\
%5E/g;
my $t = $sd->[2];
my $t = $sd->[2];
- $thing->{DXProt} = sprintf "PC11^%.1f^$sd->[1]^%s^%s^
$text^$sd->[4]^$sd->[7]^$hops^~", $sd->[0], cldate($t), ztime($t)
;
+ $thing->{DXProt} = sprintf "PC11^%.1f^$sd->[1]^%s^%s^
%s^$sd->[4]^$sd->[7]^$hops^~", $sd->[0], cldate($t), ztime($t), $text
;
}
return $thing->{DXProt};
}
}
return $thing->{DXProt};
}