groff
[Top][All Lists]
Advanced

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

Re: [Groff] indentation with macro ends


From: Ralph Corderoy
Subject: Re: [Groff] indentation with macro ends
Date: Sun, 21 Oct 2001 10:06:50 +0100

Hi,

> I did not find the place in the source where this can be fixed, tho
> that might be easily done.

Would it be in src/roff/troff/input.cc's do_define_macro function?

    if (bol && c == '.') {
      const char *s = term.contents();
      int d = 0;
      // see if it matches term
      int i;
      for (i = 0; s[i] != 0; i++) {
        d = get_copy(&n);
        if ((unsigned char)s[i] != d)
          break;
      }
      if (s[i] == 0
          && ((i == 2 && compatible_flag)
              || (d = get_copy(&n)) == ' '
              || d == '\n')) {  // we found it

Ralph.


reply via email to

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