Merge pull request #267 from duckduckgo/jag/improvement/latex-style

Added <pre> tags around the code.
master
Jag Talon 2013-12-12 21:06:44 -08:00
commit 6b5de9893c
2 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ my %texCommands = (
sub build_html{
# builds a string to display using the given $command
# and $usage
return "<i>Command:</i> $_[0] <br> <i>Example Usage:</i> $_[1]";
return "<i>Command:</i> <pre style='display: inline; padding: 1px;'>$_[0]</pre> <br> <i>Example Usage:</i> <pre style='display: inline; padding: 1px'>$_[1]</pre>";
}
handle remainder => sub {

View File

@ -14,17 +14,17 @@ ddg_goodie_test(
)],
"latex integral" => test_zci('Command: \int_lowerbound^upperbound
Example Usage: $\int_a^b f(x)dx$',
html => '<i>Command:</i> \int_lowerbound^upperbound <br> <i>Example Usage:</i> $\int_a^b f(x)dx$',
html => qr/\\int_lowerbound\^upperbound/,
heading => 'Latex command (integral)'),
"Latex integral" => test_zci('Command: \int_lowerbound^upperbound
Example Usage: $\int_a^b f(x)dx$',
html => '<i>Command:</i> \int_lowerbound^upperbound <br> <i>Example Usage:</i> $\int_a^b f(x)dx$',
html => qr/\\int_lowerbound\^upperbound/,
heading => 'Latex command (integral)'),
"tex integral" => test_zci('Command: \int_lowerbound^upperbound
Example Usage: $\int_a^b f(x)dx$',
html => '<i>Command:</i> \int_lowerbound^upperbound <br> <i>Example Usage:</i> $\int_a^b f(x)dx$',
html => qr/\\int_lowerbound\^upperbound/,
heading => 'Latex command (integral)'),
);