added 5px margin-top to IsValid <pre>
parent
227a9ff2ee
commit
670bd33040
|
@ -29,7 +29,8 @@ handle remainder => sub {
|
|||
my $answer_html = $answer;
|
||||
|
||||
$answer .= $error if $error;
|
||||
$answer_html .= "<pre style=\"font-size:12px\">$error</pre>" if $error;
|
||||
$answer_html .= "<pre style=\"font-size:12px;"
|
||||
. "margin-top:5px;\">$error</pre>" if $error;
|
||||
|
||||
return $answer, html => $answer_html
|
||||
};
|
||||
|
|
|
@ -30,7 +30,8 @@ handle remainder => sub {
|
|||
my $answer_html = $answer;
|
||||
|
||||
$answer .= $error if $error;
|
||||
$answer_html .= "<pre style=\"font-size:12px\">$error</pre>" if $error;
|
||||
$answer_html .= "<pre style=\"font-size:12px;"
|
||||
. "margin-top:5px;\">$error</pre>" if $error;
|
||||
|
||||
return $answer, html => $answer_html
|
||||
};
|
||||
|
|
|
@ -21,7 +21,7 @@ ddg_goodie_test(
|
|||
[qw(DDG::Goodie::IsValid::JSON)],
|
||||
'is valid json {"test" "lol"}' => test_zci(
|
||||
'Your JSON is invalid: \':\' expected, at character offset 8 (before ""lol"}")',
|
||||
html => 'Your JSON is invalid: <pre style="font-size:12px">\':\' expected, at character offset 8 (before ""lol"}")</pre>'
|
||||
html => 'Your JSON is invalid: <pre style="font-size:12px;margin-top:5px;">\':\' expected, at character offset 8 (before ""lol"}")</pre>'
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -37,7 +37,7 @@ ddg_goodie_test(
|
|||
[qw(DDG::Goodie::IsValid::XML)],
|
||||
'is valid xml <test>lol' => test_zci(
|
||||
'Your XML is invalid: no element found at line 1, column 9, byte 9',
|
||||
html => 'Your XML is invalid: <pre style="font-size:12px">no element found at line 1, column 9, byte 9</pre>'
|
||||
html => 'Your XML is invalid: <pre style="font-size:12px;margin-top:5px;">no element found at line 1, column 9, byte 9</pre>'
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue