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

Diff for /mandoc/mdoc_macro.c between version 1.125 and 1.127

version 1.125, 2013/12/24 20:45:27 version 1.127, 2013/12/31 23:23:11
Line 683  append_delims(struct mdoc *mdoc, int line, int *pos, c
Line 683  append_delims(struct mdoc *mdoc, int line, int *pos, c
                  * knowing which symbols break this behaviour, for                   * knowing which symbols break this behaviour, for
                  * example, `.  ;' shouldn't propagate the double-space.                   * example, `.  ;' shouldn't propagate the double-space.
                  */                   */
                 if (mandoc_eos(p, strlen(p), 0))                  if (mandoc_eos(p, strlen(p)))
                         mdoc->last->flags |= MDOC_EOS;                          mdoc->last->flags |= MDOC_EOS;
         }          }
   
Line 1347  blk_part_imp(MACRO_PROT_ARGS)
Line 1347  blk_part_imp(MACRO_PROT_ARGS)
                 if ( ! mdoc_body_alloc(mdoc, line, ppos, tok))                  if ( ! mdoc_body_alloc(mdoc, line, ppos, tok))
                         return(0);                          return(0);
                 body = mdoc->last;                  body = mdoc->last;
         }  
   
         for (n = body->child; n && n->next; n = n->next)  
                 /* Do nothing. */ ;  
   
         /*  
          * End of sentence spacing: if the last node is a text node and  
          * has a trailing period, then mark it as being end-of-sentence.  
          */  
   
         if (n && MDOC_TEXT == n->type && n->string)  
                 if (mandoc_eos(n->string, strlen(n->string), 1))  
                         n->flags |= MDOC_EOS;  
   
         /* Up-propagate the end-of-space flag. */  
   
         if (n && (MDOC_EOS & n->flags)) {  
                 body->flags |= MDOC_EOS;  
                 body->parent->flags |= MDOC_EOS;  
         }          }
   
         /*          /*

Legend:
Removed from v.1.125  
changed lines
  Added in v.1.127

CVSweb