[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.192 and 1.193

version 1.192, 2014/07/02 19:55:10 version 1.193, 2014/07/30 00:19:16
Line 1069  mdoc_ex_pre(MDOC_ARGS)
Line 1069  mdoc_ex_pre(MDOC_ARGS)
         }          }
   
         if (nchild > 1)          if (nchild > 1)
                 print_text(h, "utilities exit");                  print_text(h, "utilities exit\\~0");
         else          else
                 print_text(h, "utility exits");                  print_text(h, "utility exits\\~0");
   
         print_text(h, "0 on success, and >0 if an error occurs.");          print_text(h, "on success, and\\~>0 if an error occurs.");
         return(0);          return(0);
 }  }
   
Line 1744  mdoc_rv_pre(MDOC_ARGS)
Line 1744  mdoc_rv_pre(MDOC_ARGS)
   
         PAIR_CLASS_INIT(&tag, "fname");          PAIR_CLASS_INIT(&tag, "fname");
   
         print_text(h, "The");  
   
         nchild = n->nchild;          nchild = n->nchild;
         for (n = n->child; n; n = n->next) {          if (nchild > 0) {
                 assert(MDOC_TEXT == n->type);                  print_text(h, "The");
   
                 t = print_otag(h, TAG_B, 1, &tag);                  for (n = n->child; n; n = n->next) {
                 print_text(h, n->string);                          t = print_otag(h, TAG_B, 1, &tag);
                 print_tagq(h, t);                          print_text(h, n->string);
                           print_tagq(h, t);
   
                 h->flags |= HTML_NOSPACE;  
                 print_text(h, "()");  
   
                 if (nchild > 2 && n->next) {  
                         h->flags |= HTML_NOSPACE;                          h->flags |= HTML_NOSPACE;
                         print_text(h, ",");                          print_text(h, "()");
   
                           if (n->next == NULL)
                                   continue;
   
                           if (nchild > 2) {
                                   h->flags |= HTML_NOSPACE;
                                   print_text(h, ",");
                           }
                           if (n->next->next == NULL)
                                   print_text(h, "and");
                 }                  }
   
                 if (n->next && NULL == n->next->next)                  if (nchild > 1)
                         print_text(h, "and");                          print_text(h, "functions return");
         }                  else
                           print_text(h, "function returns");
   
         if (nchild > 1)                  print_text(h, "the value\\~0 if successful;");
                 print_text(h, "functions return");          } else
         else                  print_text(h, "Upon successful completion,"
                 print_text(h, "function returns");                      " the value\\~0 is returned;");
   
         print_text(h, "the value 0 if successful; otherwise the "          print_text(h, "otherwise the value\\~\\-1 is returned"
             "value -1 is returned and the global variable");             " and the global variable");
   
         PAIR_CLASS_INIT(&tag, "var");          PAIR_CLASS_INIT(&tag, "var");
         t = print_otag(h, TAG_B, 1, &tag);          t = print_otag(h, TAG_B, 1, &tag);

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

CVSweb