version 1.184, 2012/11/17 00:26:33 |
version 1.187, 2014/03/30 19:47:48 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
|
* Copyright (c) 2014 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 95 static int mdoc_it_pre(MDOC_ARGS); |
|
Line 96 static int mdoc_it_pre(MDOC_ARGS); |
|
static int mdoc_lb_pre(MDOC_ARGS); |
static int mdoc_lb_pre(MDOC_ARGS); |
static int mdoc_li_pre(MDOC_ARGS); |
static int mdoc_li_pre(MDOC_ARGS); |
static int mdoc_lk_pre(MDOC_ARGS); |
static int mdoc_lk_pre(MDOC_ARGS); |
|
static int mdoc_ll_pre(MDOC_ARGS); |
static int mdoc_mt_pre(MDOC_ARGS); |
static int mdoc_mt_pre(MDOC_ARGS); |
static int mdoc_ms_pre(MDOC_ARGS); |
static int mdoc_ms_pre(MDOC_ARGS); |
static int mdoc_nd_pre(MDOC_ARGS); |
static int mdoc_nd_pre(MDOC_ARGS); |
Line 242 static const struct htmlmdoc mdocs[MDOC_MAX] = { |
|
Line 244 static const struct htmlmdoc mdocs[MDOC_MAX] = { |
|
{mdoc_sp_pre, NULL}, /* sp */ |
{mdoc_sp_pre, NULL}, /* sp */ |
{mdoc__x_pre, mdoc__x_post}, /* %U */ |
{mdoc__x_pre, mdoc__x_post}, /* %U */ |
{NULL, NULL}, /* Ta */ |
{NULL, NULL}, /* Ta */ |
|
{mdoc_ll_pre, NULL}, /* ll */ |
}; |
}; |
|
|
static const char * const lists[LIST_MAX] = { |
static const char * const lists[LIST_MAX] = { |
Line 460 print_mdoc_node(MDOC_ARGS) |
|
Line 463 print_mdoc_node(MDOC_ARGS) |
|
} |
} |
|
|
if (HTML_KEEP & h->flags) { |
if (HTML_KEEP & h->flags) { |
if (n->prev && n->prev->line != n->line) { |
if (n->prev ? (n->prev->lastline != n->line) : |
|
(n->parent && n->parent->line != n->line)) { |
h->flags &= ~HTML_KEEP; |
h->flags &= ~HTML_KEEP; |
h->flags |= HTML_PREKEEP; |
h->flags |= HTML_PREKEEP; |
} else if (NULL == n->prev) { |
|
if (n->parent && n->parent->line != n->line) { |
|
h->flags &= ~HTML_KEEP; |
|
h->flags |= HTML_PREKEEP; |
|
} |
|
} |
} |
} |
} |
|
|
Line 1603 mdoc_sm_pre(MDOC_ARGS) |
|
Line 1602 mdoc_sm_pre(MDOC_ARGS) |
|
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |
static int |
static int |
|
mdoc_ll_pre(MDOC_ARGS) |
|
{ |
|
|
|
return(0); |
|
} |
|
|
|
/* ARGSUSED */ |
|
static int |
mdoc_pp_pre(MDOC_ARGS) |
mdoc_pp_pre(MDOC_ARGS) |
{ |
{ |
|
|
print_otag(h, TAG_P, 0, NULL); |
print_otag(h, TAG_P, 0, NULL); |
return(0); |
return(0); |
|
|
} |
} |
|
|
/* ARGSUSED */ |
/* ARGSUSED */ |