numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
200 stars 118 forks source link

Browser and tables in numbas #126

Closed BillFoster closed 12 years ago

BillFoster commented 12 years ago

Running Q7 in MAS3214 on safari, FF or chrome and revealing the answer gives a table which has once again a lot of white space. But not in IE - looks good there! (for a change)

www.mas.ncl.ac.uk/numbas/MAS3214/CBA1

Is it because the questions have not been recompiled?

christianp commented 12 years ago

Worked fine when I compiled it. Maybe @anthonyyoud hadn't pulled in changes to both repos?

BillFoster commented 12 years ago

Also see the gist file below - a question which includes a table

git://gist.github.com/1722966.git

Here the following error appears on all browsers - I cannot find an error

Numbas Error: Not enough arguments for | |

christianp commented 12 years ago

That wasn't anything to do with the table - the JME parser was interpreting the 'or' at the beginning of 'organisation' as the logical OR operation!

BillFoster commented 12 years ago

Blimey - that was obscure - I will have to learn to debug. Many thanks.

anthonyyoud commented 12 years ago

I recompiled the CBA yesterday after the latest git commit (it wasn't a direct copy from inishmore).

On 02/02/12 11:14, BillFoster wrote:

Running Q7 in MAS3214 on safari, FF or chrome and revealing the answer gives a table which has once again a lot of white space. But not in IE - looks good there! (for a change)

www.mas.ncl.ac.uk/numbas/MAS3214/CBA1

Is it because the questions have not been recompiled?


Reply to this email directly or view it on GitHub: https://github.com/numbas/Numbas/issues/126

BillFoster commented 12 years ago

I have tested the exam at my end and it displays the table OK - perhaps a git pull is needed and a recompile?

BillFoster commented 12 years ago

What state are we in now? There has been a fix for the current display of Q7 in MW's course but is there more work to be done?

christianp commented 12 years ago

The problem yesterday was caused by some kind of peculiarity with the Python setup on the server. I'm trying to work out what it is now.

You don't need to do anything different when writing .exam files.

christianp commented 12 years ago

Sorted it - xml.etree.ElementTree has changed very subtly between Python 3.1 and 3.2. @anthonyyoud was still on 3.1.

BillFoster commented 12 years ago

Is there still a problem with the display of tables using textile or just plain html?

christianp commented 12 years ago

No.