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

Diff for /src/usr.bin/mandoc/man_validate.c between version 1.119 and 1.120

version 1.119, 2019/06/27 15:05:14 version 1.120, 2020/01/19 16:16:32
Line 1 
Line 1 
 /*      $OpenBSD$ */  /*      $OpenBSD$ */
 /*  /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010, 2012-2018 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010, 2012-2020 Ingo Schwarze <schwarze@openbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above   * purpose with or without fee is hereby granted, provided that the above
Line 183 
Line 183 
   
                 man->meta.title = mandoc_strdup("");                  man->meta.title = mandoc_strdup("");
                 man->meta.msec = mandoc_strdup("");                  man->meta.msec = mandoc_strdup("");
                 man->meta.date = mandoc_normdate(man, NULL, n->line, n->pos);                  man->meta.date = mandoc_normdate(NULL, NULL);
         }          }
   
         if (man->meta.os_e &&          if (man->meta.os_e &&
Line 399 
Line 399 
   
         if (n != NULL)          if (n != NULL)
                 n = n->next;                  n = n->next;
         if (n != NULL && n->string != NULL && n->string[0] != '\0')          if (man->quick && n != NULL)
                 man->meta.date = mandoc_normdate(man,  
                     n->string, n->line, n->pos);  
         else {  
                 man->meta.date = mandoc_strdup("");                  man->meta.date = mandoc_strdup("");
                 mandoc_msg(MANDOCERR_DATE_MISSING,          else
                     n == NULL ? nb->line : n->line,                  man->meta.date = mandoc_normdate(n, nb);
                     n == NULL ? nb->pos : n->pos, "TH");  
         }  
   
         /* TITLE MSEC DATE ->OS<- VOL */          /* TITLE MSEC DATE ->OS<- VOL */
   

Legend:
Removed from v.1.119  
changed lines
  Added in v.1.120