[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.63 and 1.64

version 1.63, 2010/05/14 13:31:20 version 1.64, 2010/05/14 14:09:13
Line 26 
Line 26 
 #include <time.h>  #include <time.h>
   
 #include "libmdoc.h"  #include "libmdoc.h"
   #include "libmandoc.h"
   
 enum    rew {  enum    rew {
         REWIND_REWIND,          REWIND_REWIND,
Line 1153  blk_part_imp(MACRO_PROT_ARGS)
Line 1154  blk_part_imp(MACRO_PROT_ARGS)
                 if ( ! mdoc_body_alloc(m, line, ppos, tok))                  if ( ! mdoc_body_alloc(m, line, ppos, tok))
                         return(0);                          return(0);
                 body = m->last;                  body = m->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)))
                           n->flags |= MDOC_EOS;
   
           /* Up-propogate 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.63  
changed lines
  Added in v.1.64

CVSweb