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

Diff for /mandoc/mdoc_term.c between version 1.11 and 1.13

version 1.11, 2009/06/11 13:13:44 version 1.13, 2009/06/15 20:26:47
Line 415  print_foot(struct termp *p, const struct mdoc_meta *me
Line 415  print_foot(struct termp *p, const struct mdoc_meta *me
   
         tm = localtime(&meta->date);          tm = localtime(&meta->date);
   
 #ifdef __OpenBSD__  
         if (NULL == strftime(buf, p->rmargin, "%B %d, %Y", tm))  
 #else  
         if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))          if (0 == strftime(buf, p->rmargin, "%B %d, %Y", tm))
 #endif  
                 err(1, "strftime");                  err(1, "strftime");
   
         (void)strlcpy(os, meta->os, p->rmargin);          (void)strlcpy(os, meta->os, p->rmargin);
Line 2119  termp_lk_pre(DECL_ARGS)
Line 2115  termp_lk_pre(DECL_ARGS)
         assert(node->child);          assert(node->child);
         n = node->child;          n = node->child;
   
           if (NULL == n->next) {
                   TERMPAIR_SETFLAG(p, pair, ttypes[TTYPE_LINK_ANCHOR]);
                   return(1);
           }
   
         p->flags |= ttypes[TTYPE_LINK_ANCHOR];          p->flags |= ttypes[TTYPE_LINK_ANCHOR];
         term_word(p, n->string);          term_word(p, n->string);
         p->flags &= ~ttypes[TTYPE_LINK_ANCHOR];  
         p->flags |= TERMP_NOSPACE;          p->flags |= TERMP_NOSPACE;
         term_word(p, ":");          term_word(p, ":");
           p->flags &= ~ttypes[TTYPE_LINK_ANCHOR];
   
         p->flags |= ttypes[TTYPE_LINK_TEXT];          p->flags |= ttypes[TTYPE_LINK_TEXT];
         for ( ; n; n = n->next)          for (n = n->next; n; n = n->next)
                 term_word(p, n->string);                  term_word(p, n->string);
         p->flags &= ~ttypes[TTYPE_LINK_TEXT];  
   
           p->flags &= ~ttypes[TTYPE_LINK_TEXT];
         return(0);          return(0);
 }  }
   

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13

CVSweb