summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts/texdoc
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-10-18 20:39:29 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2009-10-18 20:39:29 +0000
commit19de295925dd12473c10fd3db3daf8ec34374fdc (patch)
tree9c0cf8af9ff24b163d4f30380cf408b8fd1ccaa9 /Master/texmf/scripts/texdoc
parente0806ec46d38ad0b1851e373d626731e89c4079f (diff)
texdoc bugfix and aliases update
git-svn-id: svn://tug.org/texlive/trunk@15829 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts/texdoc')
-rwxr-xr-xMaster/texmf/scripts/texdoc/texdoc.tlu3
1 files changed, 2 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texdoc/texdoc.tlu b/Master/texmf/scripts/texdoc/texdoc.tlu
index 6613270c034..db494d3696f 100755
--- a/Master/texmf/scripts/texdoc/texdoc.tlu
+++ b/Master/texmf/scripts/texdoc/texdoc.tlu
@@ -825,8 +825,9 @@ end
-- unzips it in a tempdir so that the viewer command can use the unzipped file.
function how_to_view (filename)
filename = real_path(filename) -- TODO: if not filename then ...
+ viewext, zipext = nil, nil
if support_zipped then
- viewext,zipext = string.match(filename, '.*%.([^.]*)%.([^.]*)$')
+ viewext, zipext = string.match(filename, '.*%.([^.]*)%.([^.]*)$')
if viewext and zipext then
unzip_command = config['unzip_'..zipext]
local basename_pattern = '.*/(.*%.' .. viewext .. ')'