diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2009-08-29 15:17:18 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2009-08-29 15:17:18 +0000 |
commit | 21a394173f2f63e51174eb74cccbd13444cc6818 (patch) | |
tree | d3158264d16fa5769a2620e0ec08bf6fe8d865d4 /Master/texmf/scripts | |
parent | ab95fd94bd2f4fa1a93e5cf9e262dba425752ee0 (diff) |
Fiw windows line ending problem in texdoc, thanks to Akira.
git-svn-id: svn://tug.org/texlive/trunk@14940 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts')
-rwxr-xr-x | Master/texmf/scripts/texdoc/texdoc.tlu | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf/scripts/texdoc/texdoc.tlu b/Master/texmf/scripts/texdoc/texdoc.tlu index c0e26611429..7672f3ce8fd 100755 --- a/Master/texmf/scripts/texdoc/texdoc.tlu +++ b/Master/texmf/scripts/texdoc/texdoc.tlu @@ -29,7 +29,7 @@ Previous work in the public domain: -- progname and version progname = 'texdoc' -version = '0.44' +version = '0.45' if string.sub(version, -1) == '+' then local svnrev = string.match('$Rev$', '%$Rev:%s*(%d*)%s*%$'); version = version..' svn r'..svnrev @@ -881,7 +881,9 @@ function print_menu (files, comp) if n > max_lines then io.write (n, " results. Display them all? (y/N) ") local ans = io.read('*line') - if not ((ans == 'y') or (ans == 'Y')) then return end + if not ((ans == 'y') or (ans == 'Y') + -- io.read is quite strange wrt windows line endings :-( + or (ans == '\ry') or (ans == '\rY')) then return end end end display_table (files) |