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

Diff for /src/usr.bin/mandoc/html.c between version 1.90 and 1.91

version 1.90, 2017/09/06 16:24:11 version 1.91, 2018/04/13 16:27:14
Line 1 
Line 1 
 /*      $OpenBSD$ */  /*      $OpenBSD$ */
 /*  /*
  * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2011-2015, 2017 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2011-2015, 2017, 2018 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 766 
Line 766 
 {  {
         print_word(h, "<!DOCTYPE html>");          print_word(h, "<!DOCTYPE html>");
         print_endline(h);          print_endline(h);
   }
   
   void
   print_gen_comment(struct html *h, struct roff_node *n)
   {
           int      wantblank;
   
           print_word(h, "<!-- This is an automatically generated file."
               "  Do not edit.");
           h->indent = 1;
           wantblank = 0;
           while (n != NULL && n->type == ROFFT_COMMENT) {
                   if (strstr(n->string, "-->") == NULL &&
                       (wantblank || *n->string != '\0')) {
                           print_endline(h);
                           print_indent(h);
                           print_word(h, n->string);
                           wantblank = *n->string != '\0';
                   }
                   n = n->next;
           }
           if (wantblank)
                   print_endline(h);
           print_word(h, " -->");
           print_endline(h);
           h->indent = 0;
 }  }
   
 void  void

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91