Skip to content

Commit 974e41b

Browse files
committed
use TrimmedCommaList for preloads
1 parent 7fd7777 commit 974e41b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/LaTeXML/Core.pm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,17 @@ sub digestFile {
168168
sub iniTeX {
169169
my ($self, $request, $destination, %options) = @_;
170170
my ($dir, $name, $ext);
171-
my $mode = $options{mode} || 'Base'; # normally, w/o TeX (plain) itself
171+
my $mode = $options{mode} || 'Base'; # normally, w/o TeX (plain) itself
172172
if (pathname_is_literaldata($request)) {
173173
$dir = undef; $ext = 'tex';
174174
$name = "Anonymous String"; }
175175
elsif (pathname_is_url($request)) {
176176
$dir = undef; $ext = 'tex';
177177
$name = $request; }
178178
else {
179-
if (my $pathname = pathname_find($request, types => ['tex','ltx'],
180-
paths => $$self{state}->lookupValue('SEARCHPATHS'))
181-
|| pathname_kpsewhich($request, types => ['tex','ltx'],
179+
if (my $pathname = pathname_find($request, types => ['tex', 'ltx'],
180+
paths => $$self{state}->lookupValue('SEARCHPATHS'))
181+
|| pathname_kpsewhich($request, types => ['tex', 'ltx'],
182182
paths => $$self{state}->lookupValue('SEARCHPATHS'))) {
183183
$request = $pathname;
184184
($dir, $name, $ext) = pathname_split($request); }
@@ -320,7 +320,7 @@ sub initializeState {
320320
my $handleoptions = ($type eq 'sty') || ($type eq 'cls');
321321
if ($options) {
322322
if ($handleoptions) {
323-
$options = [split(/,/, $options)]; }
323+
$options = [LaTeXML::Core::KeyVal::TrimmedCommaList($options)]; }
324324
else {
325325
Warn('unexpected', 'options',
326326
"Attempting to pass options to $preload.$type (not style or class)",

0 commit comments

Comments
 (0)