=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/html.c,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/usr.bin/mandoc/html.c 2011/07/08 17:47:54 1.28 --- src/usr.bin/mandoc/html.c 2011/10/09 17:59:56 1.29 *************** *** 1,4 **** ! /* $Id: html.c,v 1.28 2011/07/08 17:47:54 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze --- 1,4 ---- ! /* $Id: html.c,v 1.29 2011/10/09 17:59:56 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze *************** *** 114,126 **** ml_alloc(char *outopts, enum htmltype type) { struct html *h; ! const char *toks[4]; char *v; toks[0] = "style"; toks[1] = "man"; toks[2] = "includes"; ! toks[3] = NULL; h = mandoc_calloc(1, sizeof(struct html)); --- 114,127 ---- ml_alloc(char *outopts, enum htmltype type) { struct html *h; ! const char *toks[5]; char *v; toks[0] = "style"; toks[1] = "man"; toks[2] = "includes"; ! toks[3] = "fragment"; ! toks[4] = NULL; h = mandoc_calloc(1, sizeof(struct html)); *************** *** 138,143 **** --- 139,147 ---- break; case (2): h->base_includes = v; + break; + case (3): + h->oflags |= HTML_FRAGMENT; break; default: break;