[LON-CAPA-cvs] cvs: loncom /homework response.pm
raeburn
raeburn at source.lon-capa.org
Mon Oct 28 23:22:10 EDT 2024
raeburn Tue Oct 29 03:22:10 2024 EDT
Modified files:
/loncom/homework response.pm
Log:
- Bug 6995
Space (ascii 32) is not supported as a delimiter after \verb for TeX Live
2020 and later. * (ascii 42) should also not be used as a delimiter.
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.249 loncom/homework/response.pm:1.250
--- loncom/homework/response.pm:1.249 Wed Jun 19 05:56:22 2024
+++ loncom/homework/response.pm Tue Oct 29 03:22:10 2024
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# various response type definitons response definition
#
-# $Id: response.pm,v 1.249 2024/06/19 05:56:22 raeburn Exp $
+# $Id: response.pm,v 1.250 2024/10/29 03:22:10 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -885,7 +885,7 @@
if ($env{'form.answer_output_mode'} eq 'tex') {
if (!$args->{'no_verbatim'}) {
my $to_use='|';
- foreach my $value (32..126) {
+ foreach my $value (33..41,43..126) {
my $char=pack('c',$value);
if ($answer !~ /\Q$char\E/) {
$to_use=$char;
More information about the LON-CAPA-cvs
mailing list