[BACK]Return to main.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / texi2mdoc

Diff for /texi2mdoc/main.c between version 1.52 and 1.53

version 1.52, 2015/02/28 00:03:20 version 1.53, 2015/02/28 08:41:59
Line 690  doinline(struct texi *p, enum texicmd cmd, size_t *pos
Line 690  doinline(struct texi *p, enum texicmd cmd, size_t *pos
         }          }
   
         if (NULL == macro || p->literal || TEXILIST_TABLE == p->list) {          if (NULL == macro || p->literal || TEXILIST_TABLE == p->list) {
                 parsebracket(p, pos);                  parsebracket(p, pos, 0);
                 return;                  return;
         }          }
   
         teximacroopen(p, macro);          teximacroopen(p, macro);
         p->seenws = 0;          p->seenws = 0;
         parsebracket(p, pos);          parsebracket(p, pos, 0);
         texipunctuate(p, pos);          texipunctuate(p, pos);
         teximacroclose(p);          teximacroclose(p);
 }  }
Line 900  static void
Line 900  static void
 dobracket(struct texi *p, enum texicmd cmd, size_t *pos)  dobracket(struct texi *p, enum texicmd cmd, size_t *pos)
 {  {
   
         parsebracket(p, pos);          parsebracket(p, pos, 0);
 }  }
   
 static void  static void
Line 1328  doquotation(struct texi *p, enum texicmd cmd, size_t *
Line 1328  doquotation(struct texi *p, enum texicmd cmd, size_t *
 static void  static void
 domath(struct texi *p, enum texicmd cmd, size_t *pos)  domath(struct texi *p, enum texicmd cmd, size_t *pos)
 {  {
         size_t   nest, start;  
   
         /*          parsebracket(p, pos, 1);
          * Math handling is different from everything else.  
          * We don't allow any subcomponents, and we ignore the rules in  
          * terms of @-commands.  
          * This departs from GNU's rules, but whatever.  
          */  
         while (*pos < BUFSZ(p) && isws(BUF(p)[*pos]))  
                 advance(p, pos);  
         if (*pos == BUFSZ(p) || '{' != BUF(p)[*pos])  
                 return;  
         advance(p, pos);  
         if (p->seenws && p->outcol && 0 == p->literal)  
                 texiputchar(p, ' ');  
         p->seenws = 0;  
         for (nest = 1, start = *pos; *pos < BUFSZ(p) && nest > 0; ) {  
                 if ('{' == BUF(p)[*pos])  
                         nest++;  
                 else if ('}' == BUF(p)[*pos])  
                         if (0 == --nest)  
                                 continue;  
                 advance(p, pos);  
         }  
         if (*pos == BUFSZ(p))  
                 return;  
         assert('}' == BUF(p)[*pos]);  
         texiputbuf(p, start, *pos);  
         advance(p, pos);  
 }  }
   
 static void  static void
Line 1809  doignbracket(struct texi *p, enum texicmd cmd, size_t 
Line 1782  doignbracket(struct texi *p, enum texicmd cmd, size_t 
 {  {
   
         p->ign++;          p->ign++;
         parsebracket(p, pos);          parsebracket(p, pos, 0);
         p->ign--;          p->ign--;
 }  }
   

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

CVSweb