[LON-CAPA-cvs] cvs: rat(version_2_11_X) / lonpage.pm
raeburn
raeburn at source.lon-capa.org
Tue Aug 9 22:58:17 EDT 2016
raeburn Wed Aug 10 02:58:17 2016 EDT
Modified files: (Branch: version_2_11_X)
/rat lonpage.pm
Log:
- For 2.11
- Backport 1.118
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.111 rat/lonpage.pm:1.111.2.1
--- rat/lonpage.pm:1.111 Fri Jul 17 19:11:03 2015
+++ rat/lonpage.pm Wed Aug 10 02:58:17 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Page Handler
#
-# $Id: lonpage.pm,v 1.111 2015/07/17 19:11:03 raeburn Exp $
+# $Id: lonpage.pm,v 1.111.2.1 2016/08/10 02:58:17 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -315,8 +315,8 @@
my $output=Apache::lonnet::ssi($src,%posthash);
$output=~s|//(\s*<!--)? BEGIN LON-CAPA Internal.+?// END LON-CAPA Internal\s*(-->)?\s||gs;
if (($target eq 'tex') || ($target eq 'tex_answer')) {
- $output =~ s/^([^&]+)\\begin{document}//;
- $output =~ s/\\end{document}//;
+ $output =~ s/^([^&]+)\\begin\{document}//;
+ $output =~ s/\\end\{document}//;
# $output = '\parbox{\minipagewidth}{ '.$output.' }';
#some additional cleanup necessary for LateX (due to limitations of table environment
$output =~ s/(\\vskip\s*\d+mm)\s*(\\\\)+/$1/g;
More information about the LON-CAPA-cvs
mailing list