question about m4 - macro preprocessor
Neil Rickert
rickert at mp.cs.niu.edu
Mon Nov 26 01:29:16 AEST 1990
In article <3201 at mrsvr.UUCP> carl at gemed.ge.com (Carl Crawford) writes:
>i am using the macro preprocessor m4 with files that are
>subsequently passed to troff. m4 replaces lines that
>contain m4 commands with blank lines. the blank lines
>disrupt the text that is passed to troff. does anyone know
>how to run m4 so that the blank lines can be eliminated?
>
m4 appears to 'replace lines that contain m4 commands with blank lines',
but actually this is a misinterpretation of what m4 is doing.
m4 acts on the commands and substitutions, but leaves everything else
untouched. Consequently it leaves untouched the '\n' at the end of the
line containing the command.
Solution: Liberal use of the command 'dnl' (delete to new line).
--
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
Neil W. Rickert, Computer Science <rickert at cs.niu.edu>
Northern Illinois Univ.
DeKalb, IL 60115. +1-815-753-6940
More information about the Comp.unix.questions
mailing list