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

Diff for /mandoc/mdoc_html.c between version 1.191 and 1.192

version 1.191, 2014/07/02 03:48:07 version 1.192, 2014/07/02 19:55:10
Line 1524  static int
Line 1524  static int
 mdoc_sm_pre(MDOC_ARGS)  mdoc_sm_pre(MDOC_ARGS)
 {  {
   
         assert(n->child && MDOC_TEXT == n->child->type);          if (NULL == n->child)
         if (0 == strcmp("on", n->child->string)) {                  h->flags ^= HTML_NONOSPACE;
                 /*          else if (0 == strcmp("on", n->child->string))
                  * FIXME: no p->col to check.  Thus, if we have  
                  *  .Bd -literal  
                  *  .Sm off  
                  *  1 2  
                  *  .Sm on  
                  *  3  
                  *  .Ed  
                  * the "3" is preceded by a space.  
                  */  
                 h->flags &= ~HTML_NOSPACE;  
                 h->flags &= ~HTML_NONOSPACE;                  h->flags &= ~HTML_NONOSPACE;
         } else          else
                 h->flags |= HTML_NONOSPACE;                  h->flags |= HTML_NONOSPACE;
   
           if ( ! (HTML_NONOSPACE & h->flags))
                   h->flags &= ~HTML_NOSPACE;
   
         return(0);          return(0);
 }  }

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192

CVSweb