[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] indentation with macro ends
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] indentation with macro ends |
Date: |
Mon, 22 Oct 2001 00:25:39 +0200 (CEST) |
> Indeed, thank you very much. I could fix the indentation, but I
> found the following bug in the existing code; this should be fixed first.
> Try the following source fragment.
>
> #############
>
> .de macro_with_named_end end
> .if 1 some text
> .end
> This line isn't printed.
> The previous line is missing.
> .br
> .de macro_with_standard_end
> .if 1 more text
> ..
> But this line _is_ printed,
> it is not lost.
>
> #############
>
> It prints:
>
> The previous line is missing.
> But this line _is_ printed, it is not lost.
>
>
> So a macro with a named end will eat the line following its ending
> tag. This bug is hidden in the same do_define_macro() function, but
> I'm still hunting.
This isn't a bug. This is the undocumented request `.end', needed by
grohtml, together with `.begin' and `.image'. Thanks for noticing it.
Gaius, may I ask that you add documentation for those three commands?
We've missed that.
Werner
Re: [Groff] indentation with macro ends, Bernd Warken, 2001/10/22