bug-texinfo
[Top][All Lists]
Advanced

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

Re: `\\' doesn't work in @math


From: Karl Berry
Subject: Re: `\\' doesn't work in @math
Date: Mon, 18 Mar 2002 12:00:48 -0500

    the problem is apparently specific to the handling of @deffn in makeinfo

Right you are.  I must have failed to see the error when I ran texi2dvi -e.
Here's a patch.

Thanks,
k

*** defun.c     2002/01/22 18:01:24     1.18
--- defun.c     2002/03/18 16:52:49
***************
*** 66,71 ****
--- 66,72 ----
  {
    char *scan_string = (*string_pointer) + 1;
    unsigned int level = 1;
+   int started_command = 0;
  
    for (;;)
      {
***************
*** 80,96 ****
          {
            /* Tweak line_number to compensate for fact that
               we gobbled the whole line before coming here. */
!           line_number -= 1;
            line_error (_("Missing `}' in @def arg"));
!           line_number += 1;
            *string_pointer = scan_string - 1;
            return 0;
          }
  
!       if (c == '{')
!         level += 1;
!       if (c == '}')
!         level -= 1;
      }
  }
  
--- 81,100 ----
          {
            /* Tweak line_number to compensate for fact that
               we gobbled the whole line before coming here. */
!           line_number--;
            line_error (_("Missing `}' in @def arg"));
!           line_number++;
            *string_pointer = scan_string - 1;
            return 0;
          }
  
!       if (c == '{' && !started_command)
!         level++;
!       if (c == '}' && !started_command)
!         level--;
! 
!       /* remember if at @.  */
!       started_command = (c == '@' && !started_command);
      }
  }
  



reply via email to

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