Mercurial > hg > octave-nkf
changeset 15906:1af9fa3d6a0b stable
munge-texi.pl: Strip EOL character(s) in a platform-agnostic way.
* doc/interpreter/munge-texi.pl: Use regex rather than chomp() to
remove EOL characters from line.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 05 Jan 2013 18:39:18 -0800 |
parents | 7c469bffc599 |
children | 53ec9063dc6d 75ee21062d0b |
files | doc/interpreter/munge-texi.pl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/munge-texi.pl +++ b/doc/interpreter/munge-texi.pl @@ -26,7 +26,7 @@ do { - chomp; + s/\s*$//; # strip EOL character(s) $symbol = substr ($_,1); $docstring = extract_docstring (); if ($help_text{$symbol}) @@ -46,7 +46,7 @@ # Process .txi to .texi by expanding @DOCSTRING, @EXAMPLEFILE macros # Add warning header -print '@c DO NOT EDIT! Generated automatically by munge-texi.',"\n\n"; +print '@c DO NOT EDIT! Generated automatically by munge-texi.pl.',"\n\n"; TXI_LINE: while (<STDIN>) {