[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.9 and 1.10

version 1.9, 2017/02/12 14:19:01 version 1.10, 2017/07/05 15:03:27
Line 52  eqn_box(struct termp *p, const struct eqn_box *bp)
Line 52  eqn_box(struct termp *p, const struct eqn_box *bp)
 {  {
         const struct eqn_box *child;          const struct eqn_box *child;
   
         if (bp->type == EQN_LIST ||          if ((bp->type == EQN_LIST && bp->expectargs > 1) ||
             (bp->type == EQN_PILE && (bp->prev || bp->next)) ||              (bp->type == EQN_PILE && (bp->prev || bp->next)) ||
             (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) {              (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) {
                 if (bp->parent->type == EQN_SUBEXPR && bp->prev != NULL)                  if (bp->parent->type == EQN_SUBEXPR && bp->prev != NULL)
Line 96  eqn_box(struct termp *p, const struct eqn_box *bp)
Line 96  eqn_box(struct termp *p, const struct eqn_box *bp)
         } else {          } else {
                 child = bp->first;                  child = bp->first;
                 if (bp->type == EQN_MATRIX &&                  if (bp->type == EQN_MATRIX &&
                     child != NULL && child->type == EQN_LIST)                      child != NULL &&
                       child->type == EQN_LIST &&
                       child->expectargs > 1)
                         child = child->first;                          child = child->first;
                 while (child != NULL) {                  while (child != NULL) {
                         eqn_box(p,                          eqn_box(p,
                             bp->type == EQN_PILE &&                              bp->type == EQN_PILE &&
                             child->type == EQN_LIST &&                              child->type == EQN_LIST &&
                               child->expectargs > 1 &&
                             child->args == 1 ?                              child->args == 1 ?
                             child->first : child);                              child->first : child);
                         child = child->next;                          child = child->next;
Line 110  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 ||          if ((bp->type == EQN_LIST && bp->expectargs > 1) ||
             (bp->type == EQN_PILE && (bp->prev || bp->next)) ||              (bp->type == EQN_PILE && (bp->prev || bp->next)) ||
             (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) {              (bp->parent != NULL && bp->parent->pos == EQNPOS_SQRT)) {
                 p->flags |= TERMP_NOSPACE;                  p->flags |= TERMP_NOSPACE;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

CVSweb