-
-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Labels
bugSoftware bug issueSoftware bug issuemodules:packagesIssue relates to core or 3rd party packagesIssue relates to core or 3rd party packages
Milestone
Description
SILE 0.12
Math input:
<sile>
<mathml>
<mtable><mtr><mtd><mi>A</mi></mtd></mtr><mtr><mtd><mi>B</mi></mtd></mtr></mtable>
<mi>C</mi>
<mtable><mtr><mtd><mi>D</mi></mtd></mtr><mtr><mtd><mi>E</mi></mtd></mtr></mtable>
</mathml>
</sile>
Expected:
A D
C
B E
Observed
Error detected:
/usr/share/sile/core/length.lua:96: attempt to index local 'self' (a nil value)
stack traceback:
/usr/share/sile/core/length.lua:96: in function '__add'
packages/math/base-elements.lua:486: in function 'shape'
packages/math/base-elements.lua:309: in function 'shapeTree'
/usr/share/sile/packages/math/typesetter.lua:117: in function 'handleMath'
...
At line 486, self.children[i - 1].relY is nil for i == 2 (and indeed not initialized above in the case i == 1 ? However setting it there to 0 avoids the crash, but all items are then stacked vertically...
(MathML is hard, maybe I am doing it wrong ? the above MathML snippet was generated with the demo at https://demo.wiris.com/mathtype/en/developers.php and and also shows up correctly in https://www.mathmlcentral.com/Tools/FromMathML.jsp)
Metadata
Metadata
Assignees
Labels
bugSoftware bug issueSoftware bug issuemodules:packagesIssue relates to core or 3rd party packagesIssue relates to core or 3rd party packages
Type
Projects
Status
Done