ConvertLatLon: Switching to text template

master
Rob Emery 2016-05-15 17:20:31 +01:00
parent 3b32b27bc8
commit 6824549aaf
1 changed files with 9 additions and 6 deletions

15
lib/DDG/Goodie/ConvertLatLon.pm Normal file → Executable file
View File

@ -210,13 +210,16 @@ handle query_nowhitespace => sub {
}
my $answer = join(' ' , @results);
my $result = join(", ",@results);
my $result = join(", ", @results);
return $answer,
structured_answer => {
input => [@queries],
operation => "Convert to $toFormat",
result => html_enc($result),
return $answer, structured_answer => {
data => {
subtitle => "Convert to $toFormat: " . join(", ", @queries),
title => $result
},
templates => {
group => 'text'
}
};
};