[BACK]Return to man_html.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/man_html.c between version 1.97 and 1.98

version 1.97, 2017/06/24 14:38:27 version 1.98, 2017/06/25 07:23:53
Line 104 
Line 104 
         { NULL, NULL }, /* EE */          { NULL, NULL }, /* EE */
         { man_UR_pre, NULL }, /* UR */          { man_UR_pre, NULL }, /* UR */
         { NULL, NULL }, /* UE */          { NULL, NULL }, /* UE */
           { man_UR_pre, NULL }, /* MT */
           { NULL, NULL }, /* ME */
 };  };
 static  const struct htmlman *const mans = __mans - MAN_TH;  static  const struct htmlman *const mans = __mans - MAN_TH;
   
Line 228 
Line 230 
                 case MAN_P:   /* reopen .nf in the body.        */                  case MAN_P:   /* reopen .nf in the body.        */
                 case MAN_RS:                  case MAN_RS:
                 case MAN_UR:                  case MAN_UR:
                   case MAN_MT:
                         fillmode(h, MAN_fi);                          fillmode(h, MAN_fi);
                         break;                          break;
                 default:                  default:
Line 642 
Line 645 
 static int  static int
 man_UR_pre(MAN_ARGS)  man_UR_pre(MAN_ARGS)
 {  {
           char *cp;
         n = n->child;          n = n->child;
         assert(n->type == ROFFT_HEAD);          assert(n->type == ROFFT_HEAD);
         if (n->child != NULL) {          if (n->child != NULL) {
                 assert(n->child->type == ROFFT_TEXT);                  assert(n->child->type == ROFFT_TEXT);
                 print_otag(h, TAG_A, "cTh", "Lk", n->child->string);                  if (n->tok == MAN_MT) {
                           mandoc_asprintf(&cp, "mailto:%s", n->child->string);
                           print_otag(h, TAG_A, "cTh", "Mt", cp);
                           free(cp);
                   } else
                           print_otag(h, TAG_A, "cTh", "Lk", n->child->string);
         }          }
   
         assert(n->next->type == ROFFT_BODY);          assert(n->next->type == ROFFT_BODY);

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98