[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.108 and 1.109

version 1.108, 2011/04/25 00:03:07 version 1.109, 2011/04/30 10:18:24
Line 643  append_delims(struct mdoc *m, int line, int *pos, char
Line 643  append_delims(struct mdoc *m, int line, int *pos, char
                  * If we encounter end-of-sentence symbols, then trigger                   * If we encounter end-of-sentence symbols, then trigger
                  * the double-space.                   * the double-space.
                  *                   *
                  * XXX: it's easy to allow this to propogate outward to                   * XXX: it's easy to allow this to propagate outward to
                  * the last symbol, such that `. )' will cause the                   * the last symbol, such that `. )' will cause the
                  * correct double-spacing.  However, (1) groff isn't                   * correct double-spacing.  However, (1) groff isn't
                  * smart enough to do this and (2) it would require                   * smart enough to do this and (2) it would require
                  * knowing which symbols break this behaviour, for                   * knowing which symbols break this behaviour, for
                  * example, `.  ;' shouldn't propogate the double-space.                   * example, `.  ;' shouldn't propagate the double-space.
                  */                   */
                 if (mandoc_eos(p, strlen(p), 0))                  if (mandoc_eos(p, strlen(p), 0))
                         m->last->flags |= MDOC_EOS;                          m->last->flags |= MDOC_EOS;
Line 1007  blk_full(MACRO_PROT_ARGS)
Line 1007  blk_full(MACRO_PROT_ARGS)
         }          }
   
         /*          /*
          * This routine accomodates implicitly- and explicitly-scoped           * This routine accommodates implicitly- and explicitly-scoped
          * macro openings.  Implicit ones first close out prior scope           * macro openings.  Implicit ones first close out prior scope
          * (seen above).  Delay opening the head until necessary to           * (seen above).  Delay opening the head until necessary to
          * allow leading punctuation to print.  Special consideration           * allow leading punctuation to print.  Special consideration
Line 1304  blk_part_imp(MACRO_PROT_ARGS)
Line 1304  blk_part_imp(MACRO_PROT_ARGS)
                 if (mandoc_eos(n->string, strlen(n->string), 1))                  if (mandoc_eos(n->string, strlen(n->string), 1))
                         n->flags |= MDOC_EOS;                          n->flags |= MDOC_EOS;
   
         /* Up-propogate the end-of-space flag. */          /* Up-propagate the end-of-space flag. */
   
         if (n && (MDOC_EOS & n->flags)) {          if (n && (MDOC_EOS & n->flags)) {
                 body->flags |= MDOC_EOS;                  body->flags |= MDOC_EOS;

Legend:
Removed from v.1.108  
changed lines
  Added in v.1.109

CVSweb