Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8d94a8

Browse files
committed
Horrible hack to split up code '--' to prevent
latex2html from collapsing it into '-'.
1 parent 1cd26f2 commit e8d94a8

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

Doc/lib/libgetopt.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ \section{Standard Module \sectcode{getopt}}
66
It supports the same conventions as the \UNIX{}
77
\code{getopt()}
88
function (including the special meanings of arguments of the form
9-
\samp{-} and \samp{--}). Long options similar to those supported by
9+
`\code{-}' and `\code{-}\code{-}').
10+
% That's to fool latex2html into leaving the two hyphens alone!
11+
Long options similar to those supported by
1012
GNU software may be used as well via an optional third argument.
1113
It defines the function
1214
\code{getopt.getopt(args, options [, long_options])}
@@ -24,7 +26,7 @@ \section{Standard Module \sectcode{getopt}}
2426
\code{getopt()}
2527
uses).
2628
The third option, if specified, is a list of strings with the names of
27-
the long options which should be supported. The leading \code{'--'}
29+
the long options which should be supported. The leading \code{'-}\code{-'}
2830
characters should not be included in the option name. Options which
2931
require an argument should be followed by an equal sign (\code{'='}).
3032
The return value consists of two elements: the first is a list of

Doc/libgetopt.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ \section{Standard Module \sectcode{getopt}}
66
It supports the same conventions as the \UNIX{}
77
\code{getopt()}
88
function (including the special meanings of arguments of the form
9-
\samp{-} and \samp{--}). Long options similar to those supported by
9+
`\code{-}' and `\code{-}\code{-}').
10+
% That's to fool latex2html into leaving the two hyphens alone!
11+
Long options similar to those supported by
1012
GNU software may be used as well via an optional third argument.
1113
It defines the function
1214
\code{getopt.getopt(args, options [, long_options])}
@@ -24,7 +26,7 @@ \section{Standard Module \sectcode{getopt}}
2426
\code{getopt()}
2527
uses).
2628
The third option, if specified, is a list of strings with the names of
27-
the long options which should be supported. The leading \code{'--'}
29+
the long options which should be supported. The leading \code{'-}\code{-'}
2830
characters should not be included in the option name. Options which
2931
require an argument should be followed by an equal sign (\code{'='}).
3032
The return value consists of two elements: the first is a list of

0 commit comments

Comments
 (0)