=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/html.c,v retrieving revision 1.91 retrieving revision 1.92 diff -c -r1.91 -r1.92 *** src/usr.bin/mandoc/html.c 2018/04/13 16:27:14 1.91 --- src/usr.bin/mandoc/html.c 2018/05/01 23:36:39 1.92 *************** *** 1,4 **** ! /* $OpenBSD: html.c,v 1.91 2018/04/13 16:27:14 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: html.c,v 1.92 2018/05/01 23:36:39 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze *************** *** 166,174 **** struct tag *t; print_otag(h, TAG_META, "?", "charset", "utf-8"); /* ! * Print a default style-sheet. */ t = print_otag(h, TAG_STYLE, ""); --- 166,179 ---- struct tag *t; print_otag(h, TAG_META, "?", "charset", "utf-8"); + if (h->style != NULL) { + print_otag(h, TAG_LINK, "?h??", "rel", "stylesheet", + h->style, "type", "text/css", "media", "all"); + return; + } /* ! * Print a minimal embedded style sheet. */ t = print_otag(h, TAG_STYLE, ""); *************** *** 180,189 **** print_endline(h); print_text(h, "div.Pp { margin: 1ex 0ex; }"); print_tagq(h, t); - - if (h->style) - print_otag(h, TAG_LINK, "?h??", "rel", "stylesheet", - h->style, "type", "text/css", "media", "all"); } static void --- 185,190 ----