version 1.109, 2015/01/24 02:41:49 |
version 1.112, 2015/03/03 21:11:34 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008-2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2013, 2014, 2015 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 |
|
|
print_man_nodelist(MAN_ARGS) |
print_man_nodelist(MAN_ARGS) |
{ |
{ |
|
|
print_man_node(man, n, mh, h); |
while (n != NULL) { |
if (n->next) |
print_man_node(man, n, mh, h); |
print_man_nodelist(man, n->next, mh, h); |
n = n->next; |
|
} |
} |
} |
|
|
static void |
static void |
Line 215 print_man_node(MAN_ARGS) |
|
Line 216 print_man_node(MAN_ARGS) |
|
print_paragraph(h); |
print_paragraph(h); |
return; |
return; |
} |
} |
if (n->flags & MAN_LINE && (*n->string == ' ' || |
if (n->flags & MAN_LINE && (*n->string == ' ' || |
(n->prev != NULL && mh->fl & MANH_LITERAL && |
(n->prev != NULL && mh->fl & MANH_LITERAL && |
! (h->flags & HTML_NONEWLINE)))) |
! (h->flags & HTML_NONEWLINE)))) |
print_otag(h, TAG_BR, 0, NULL); |
print_otag(h, TAG_BR, 0, NULL); |
print_text(h, n->string); |
print_text(h, n->string); |
return; |
return; |
case MAN_EQN: |
case MAN_EQN: |
|
if (n->flags & MAN_LINE) |
|
putchar('\n'); |
print_eqn(h, n->eqn); |
print_eqn(h, n->eqn); |
break; |
break; |
case MAN_TBL: |
case MAN_TBL: |