[BACK]Return to eqn_term.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/eqn_term.c between version 1.6 and 1.7

version 1.6, 2017/07/05 15:03:20 version 1.7, 2017/07/06 00:08:52
Line 111 
Line 111 
   
         if (bp->font != EQNFONT_NONE)          if (bp->font != EQNFONT_NONE)
                 term_fontpop(p);                  term_fontpop(p);
         if ((bp->type == EQN_LIST && bp->expectargs > 1) ||  
             (bp->type == EQN_PILE && (bp->prev || bp->next)) ||  
             (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) {  
                 p->flags |= TERMP_NOSPACE;  
                 term_word(p, bp->right != NULL ? bp->right : ")");  
                 if (bp->parent->type == EQN_SUBEXPR && bp->next != NULL)  
                         p->flags |= TERMP_NOSPACE;  
         }  
   
         if (bp->top != NULL) {          if (bp->top != NULL) {
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;
                 term_word(p, bp->top);                  term_word(p, bp->top);
Line 127 
Line 118 
         if (bp->bottom != NULL) {          if (bp->bottom != NULL) {
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;
                 term_word(p, "_");                  term_word(p, "_");
           }
           if ((bp->type == EQN_LIST && bp->expectargs > 1) ||
               (bp->type == EQN_PILE && (bp->prev || bp->next)) ||
               (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) {
                   p->flags |= TERMP_NOSPACE;
                   term_word(p, bp->right != NULL ? bp->right : ")");
                   if (bp->parent->type == EQN_SUBEXPR && bp->next != NULL)
                           p->flags |= TERMP_NOSPACE;
         }          }
 }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7