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

Diff for /mandoc/eqn_term.c between version 1.10 and 1.11

version 1.10, 2017/07/05 15:03:27 version 1.11, 2017/07/06 00:19:54
Line 113  eqn_box(struct termp *p, const struct eqn_box *bp)
Line 113  eqn_box(struct termp *p, const struct eqn_box *bp)
   
         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 129  eqn_box(struct termp *p, const struct eqn_box *bp)
Line 120  eqn_box(struct termp *p, const struct eqn_box *bp)
         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.10  
changed lines
  Added in v.1.11

CVSweb