Commit 6a4dd45
committed
Fix invalid html for ans_array answers.
The `format_matrix_HTML` method uses `span` tags to format the html
output for matrices. This is a problem when that is used to format the
output for an `ans_array` answer because the answer inputs inside now
are wrapped in `div` tags (so that the feedback button works in a valid
html way). So this just switches to using `div`s instead. This doesn't
change the result at all since the containg array layout div already has
`display:inline-block` set.
There is one minor tweak to the style. I added `text-align:center;` to
the cells. This just looks better in about all of the cases that I have
observed. Note that this is also consistent with when these objects are
displayed in math mode via MathJax or as an image with the image display
mode.
Note that method is used ans_array matrix, vector, and point answer
rules, as well as the "Entered" feedback preview of the student answer
for those answers. It also affects the "textual" correct answer, but
that actually isn't used for anything anymore.1 parent ce1f03b commit 6a4dd45
1 file changed
+15
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
559 | 559 | | |
560 | | - | |
561 | | - | |
562 | | - | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
| 566 | + | |
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
| 572 | + | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
| 590 | + | |
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
| 594 | + | |
595 | 595 | | |
596 | | - | |
| 596 | + | |
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | | - | |
| 602 | + | |
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
| 608 | + | |
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| |||
0 commit comments