Fix a glitch in rendering style arguments

* now renders the succeeding elements instead of the style-info itself

* index in MMLTexUtilTest: 530

Bug: T331998
Change-Id: I0ad330157fa7687a2ad68a3d97b4c9cc942ea3ab
This commit is contained in:
Stegmujo 2023-03-15 10:14:16 +00:00 committed by Physikerwelt
parent c0281a9237
commit 55068c5839

View file

@ -165,7 +165,7 @@ class TexArray extends TexNode {
$mmlStyle = new MMLmstyle( "", $styleArguments ); $mmlStyle = new MMLmstyle( "", $styleArguments );
$fullRenderedArray .= $mmlStyle->getStart(); $fullRenderedArray .= $mmlStyle->getStart();
if ( $next instanceof Curly ) { if ( $next instanceof Curly ) {
$fullRenderedArray .= $this->renderMMLwithColor( $currentColor, $current, $state, $arguments ); $fullRenderedArray .= $this->renderMMLwithColor( $currentColor, $next, $state, $arguments );
$fullRenderedArray .= $mmlStyle->getEnd(); $fullRenderedArray .= $mmlStyle->getEnd();
$mmlStyle = null; $mmlStyle = null;
$i++; $i++;