mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-21407 tex filter - trim leading whitespace from latex preamble. Merged from 19_STABLE
This commit is contained in:
parent
d3d393ab37
commit
073d380425
3 changed files with 12 additions and 3 deletions
|
@ -3029,6 +3029,16 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
}
|
||||
upgrade_main_savepoint($result, 2010020300);
|
||||
}
|
||||
|
||||
// MDL-21407. Trim leading spaces from default tex latexpreamble causing problems under some confs
|
||||
if ($result && $oldversion < 2010020301) {
|
||||
if ($preamble = $CFG->filter_tex_latexpreamble) {
|
||||
$preamble = preg_replace('/^ +/m', '', $preamble);
|
||||
set_config('filter_tex_latexpreamble', $preamble);
|
||||
}
|
||||
upgrade_main_savepoint($result, 2010020301);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue