diff options
Diffstat (limited to 'Master/tlpkg/TeXLive')
-rw-r--r-- | Master/tlpkg/TeXLive/TLPSRC.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/tlpkg/TeXLive/TLPSRC.pm b/Master/tlpkg/TeXLive/TLPSRC.pm index 0a1146386ac..f6f88d12172 100644 --- a/Master/tlpkg/TeXLive/TLPSRC.pm +++ b/Master/tlpkg/TeXLive/TLPSRC.pm @@ -131,7 +131,10 @@ sub from_file { $line =~ /^ / && die "$srcfile:$lineno: non-continuation indentation not allowed: `$line'"; # - # remove trailing white space. + # remove trailing comment (whitespace preceding #). + $line =~ s/\s+#.*$//; + # + # remove other trailing white space. $line =~ s/\s+$//; # expand tlpvars while reading in (except in descriptions). |