Subject: | Documentation error for usage of "displaystyle" (patch attached) |
The documentation uses incorrect arguments for "displaystyle".
--- a/lib/Text/ASCIIMathML.pm
+++ b/lib/Text/ASCIIMathML.pm
@@ -16,11 +16,11 @@ Text::ASCIIMathML - Perl extension for parsing ASCIIMathML text into MathML
$ASCIIMathML = "int_0^1 e^x dx";
$mathML = $parser->TextToMathML($ASCIIMathML);
$mathML = $parser->TextToMathML($ASCIIMathML, [title=>$ASCIIMathML]);
- $mathML = $parser->TextToMathML($ASCIIMathML, undef, [displaystyle=>1]);
+ $mathML = $parser->TextToMathML($ASCIIMathML, undef, [displaystyle=>"true"]);
$mathMLTree = $parser->TextToMathMLTree($ASCIIMathML);
$mathMLTree = $parser->TextToMathMLTree($ASCIIMathML, [title=>$ASCIIMathML]);
- $mathMLTree = $parser->TextToMathMLTree($ASCIIMathML,undef,[displaystyle=>1]);
+ $mathMLTree = $parser->TextToMathMLTree($ASCIIMathML,undef,[displaystyle=>"true"]);
$mathML = $mathMLTree->text();
$latex = $mathMLTree->latex();