Features & Development

Old good work by Davide for displaying multiline string answers still needed? How best future proof it?

Old good work by Davide for displaying multiline string answers still needed? How best future proof it?

by Christian Seberino -
Number of replies: 4
On February 4 2013 at 10:04 AM  in the main forum in a thread titled 

"How make Webwork display *MULTILINE* string answers properly when student wants Webwork to "Show correct answers" ?

Davide attached the last iteration of some mods to contextArbitraryString.pl
that fixed the display of multiline answers.

If I understand correctly, it basically now uses HTML instead of Latex
with the addition of Context()->flags->set(noLaTeXresults => 1); to 
problem files with string answers among other niceties.

Now that I'm upgrading to a newer version of Webwork, is this still needed?

Should I just replace original contextArbitraryString.pl with this one?

I did a diff of both versions and it wasn't clear if that would work.

Can these fixes possibly be added to Webwork source if they haven't already, or, is there another way to avoid issues when upgrading?

Thanks!

chris




In reply to Christian Seberino

Re: Old good work by Davide for displaying multiline string answers still needed? How best future proof it?

by Davide Cervone -
The version in WeBWorK 2.7 is effectively the same as the last one I sent you in the thread you cite. (It is slightly different to accommodate changes in WW, but it should work the same for you).

Davide
In reply to Davide Cervone

Re: Old good work by Davide for displaying multiline string answers still needed? How best future proof it?

by Christian Seberino -
Ah very nice! So everyone can benefit.

Thanks.

cs
In reply to Davide Cervone

Re: Old good work by Davide for displaying multiline string answers still needed? How best future proof it?

by Christian Seberino -
Is this code also in ver2.5.1.1?  I'd rather not upgrade unless I have to.

cs
In reply to Christian Seberino

Re: Old good work by Davide for displaying multiline string answers still needed? How best future proof it?

by Davide Cervone -
I don't think it is in 2.5.1.1