summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/html.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-04-13 16:27:14 +0000
committerschwarze <schwarze@openbsd.org>2018-04-13 16:27:14 +0000
commitcc202eca9cb33d4e0c4d3594b0ed347750b157cf (patch)
tree4805c1462c445351d0aae48d305e1c44c3d594d2 /usr.bin/mandoc/html.h
parentmg tries to write backups to the wrong directory when run under a (diff)
downloadwireguard-openbsd-cc202eca9cb33d4e0c4d3594b0ed347750b157cf.tar.xz
wireguard-openbsd-cc202eca9cb33d4e0c4d3594b0ed347750b157cf.zip
preserve comments before .Dd and .TH (typically Copyright and license)
in full HTML output, but not with -Ofragment, e.g. in man.cgi(8); suggested by Thomas Klausner <wiz at NetBSD>
Diffstat (limited to 'usr.bin/mandoc/html.h')
-rw-r--r--usr.bin/mandoc/html.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h
index 234ab44c60a..b3a8b796461 100644
--- a/usr.bin/mandoc/html.h
+++ b/usr.bin/mandoc/html.h
@@ -1,7 +1,7 @@
-/* $OpenBSD: html.h,v 1.49 2017/07/08 14:51:01 schwarze Exp $ */
+/* $OpenBSD: html.h,v 1.50 2018/04/13 16:27:14 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
- * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -119,6 +119,7 @@ struct eqn_box;
void roff_html_pre(struct html *, const struct roff_node *);
+void print_gen_comment(struct html *, struct roff_node *);
void print_gen_decls(struct html *);
void print_gen_head(struct html *);
struct tag *print_otag(struct html *, enum htmltag, const char *, ...);