* Eric Blake wrote on Mon, Jun 14, 2010 at 11:30:46PM CEST: > Any other ideas for a workaround that works for both info and pdf?
Not using macros here? Cheers, Ralf Avoid texinfo bug with backslashes in macro arguments. * doc/autoconf.texi (Text processing Macros) (Common Shell Constructs): Do not use @dvar with backslashes. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index fadc2ef..be9f24a 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -12488,7 +12488,8 @@ Text processing Macros regexps. @end defmac -...@defmac m4_split (@var{string}, @dvar{regexp, [\t ]+}) +...@c We cannot use @dvar because the macro expansion mistreats backslashes. +...@defmac m4_split (@var{string}, @r...@var{regexp} = @samp{[\t ]...@r{]}) @msindex{split} Split @var{string} into an M4 list of elements quoted by @samp{[} and @samp{]}, while keeping white space at the beginning and at the end. @@ -13110,7 +13111,8 @@ Common Shell Constructs Redirections can be placed outside the macro invocation. @end defmac -...@defmac AS_ESCAPE (@var{string}, @dvar{chars, `\"$}) +...@c We cannot use @dvar because the macro expansion mistreats backslashes. +...@defmac AS_ESCAPE (@var{string}, @r...@var{chars} = @samp{`\"$...@r{]}) @asindex{ESCAPE} Expands to @var{string}, with any characters in @var{chars} escaped with a backslash (@samp{\}). @var{chars} should be at most four bytes long,