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

Diff for /mandoc/eqn.c between version 1.68 and 1.69

version 1.68, 2017/06/23 00:30:38 version 1.69, 2017/06/23 21:04:57
Line 1139  this_tok:
Line 1139  this_tok:
                                         break;                                          break;
                                 if (ccln == ccl)                                  if (ccln == ccl)
                                         continue;                                          continue;
                                 /* Boundary found, add a new box. */                                  /* Boundary found, split the text. */
                                   if (parent->args == parent->expectargs) {
                                           /* Remove the text from the tree. */
                                           if (cur->prev == NULL)
                                                   parent->first = cur->next;
                                           else
                                                   cur->prev->next = NULL;
                                           parent->last = cur->prev;
                                           parent->args--;
                                           /* Set up a list instead. */
                                           nbox = eqn_box_alloc(ep, parent);
                                           nbox->type = EQN_LIST;
                                           /* Insert the word into the list. */
                                           nbox->first = nbox->last = cur;
                                           cur->parent = nbox;
                                           cur->prev = NULL;
                                           parent = nbox;
                                   }
                                   /* Append a new text box. */
                                 nbox = eqn_box_alloc(ep, parent);                                  nbox = eqn_box_alloc(ep, parent);
                                 nbox->type = EQN_TEXT;                                  nbox->type = EQN_TEXT;
                                 nbox->text = mandoc_strdup(cpn);                                  nbox->text = mandoc_strdup(cpn);

Legend:
Removed from v.1.68  
changed lines
  Added in v.1.69

CVSweb