From 6824549aafcb2f067055794d3001beb596f9b834 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Sun, 15 May 2016 17:20:31 +0100 Subject: [PATCH] ConvertLatLon: Switching to text template --- lib/DDG/Goodie/ConvertLatLon.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) mode change 100644 => 100755 lib/DDG/Goodie/ConvertLatLon.pm diff --git a/lib/DDG/Goodie/ConvertLatLon.pm b/lib/DDG/Goodie/ConvertLatLon.pm old mode 100644 new mode 100755 index 3d764fa08..5c1df510e --- a/lib/DDG/Goodie/ConvertLatLon.pm +++ b/lib/DDG/Goodie/ConvertLatLon.pm @@ -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' + } }; };