bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Whitespace and Macros and Bugs


From: Karl Berry
Subject: Re: Whitespace and Macros and Bugs
Date: Tue, 9 Nov 2010 22:23:23 GMT

    The following Texinfo examples were processed into
    the shown Info output using:

For what little it's worth, I think that at least some of the confusion
is caused by the implicit indentation (or lack of indentation) done at
the beginning of paragraphs.  I made a file with three examples, using
@noindent to eliminate that, and the output is the same for all of
them.

The only tricky bit is the @c in the "bone" macro.  Otherwise there is
an extra blank line in the output for that example.  This does
contradict the statement (and makeinfo behavior) about the newline
before the @end macro being removed.  I'll see if it can be fixed, but
we shouldn't hold our breath :).

Meanwhile, I updated the manual a bit in this regard, with even more
emphatic warnings about how Texinfo macros are not "normal" macros.

Thanks again for the report.

karl


\input texinfo
@setfilename mac-example.info

@noindent Entire example env is a macro:

@macro bzero
@example
B0
@end example
@end macro

@noindent A0
@bzero
@noindent C1

@sp 1
@noindent Only body of example env is a macro:
@macro bone
B1 @c
@end macro

@noindent A1
@example
@bone
@end example
@noindent C1

@sp 1
@noindent Next example doesn't use macros:

@noindent A2
@example
B2
@end example
@noindent C2

@bye



reply via email to

[Prev in Thread] Current Thread [Next in Thread]