From d3e9c29e162d006f005527107561abbf32b0f1a1 Mon Sep 17 00:00:00 2001 From: Jessica Yu Date: Thu, 6 Sep 2012 16:24:11 -0700 Subject: [PATCH] centered the avatar, moved link --- lib/DDG/Goodie/Unicornify.pm | 6 ++---- t/Unicornify.t | 8 +++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/DDG/Goodie/Unicornify.pm b/lib/DDG/Goodie/Unicornify.pm index 983a32167..4cdf0f405 100644 --- a/lib/DDG/Goodie/Unicornify.pm +++ b/lib/DDG/Goodie/Unicornify.pm @@ -13,12 +13,10 @@ handle remainder => sub { my $link = 'http://unicornify.appspot.com/'; if (Email::Valid->address($_)) { s/[\s\t]+//g; # strip whitespace from the remainder, we just need the email address. - return $_ . '\'s unicorn:', - html => $_.'\'s unicorn:' + html => $_ . '\'s unicorn (Learn more at unicornify.appspot.com):' .'
' - .'' - .'
Learn more at unicornify.appspot.com'; + .''; } return; }; diff --git a/t/Unicornify.t b/t/Unicornify.t index 3a7ea1071..65df4eeb4 100644 --- a/t/Unicornify.t +++ b/t/Unicornify.t @@ -15,10 +15,8 @@ ddg_goodie_test( )], 'unicornify bob@bob.com' => test_zci('bob@bob.com\'s unicorn:', - html => 'bob@bob.com\'s unicorn:'.'

Learn more at unicornify.appspot.com')); + html => 'bob@bob.com\'s unicorn (Learn more at unicornify.appspot.com):
' + .'' + .'')); done_testing;