Merge pull request #267 from duckduckgo/jag/improvement/latex-style
Added <pre> tags around the code.master
commit
6b5de9893c
|
@ -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 {
|
||||
|
|
|
@ -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)'),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue