version 1.64, 2009/07/29 08:46:06 |
version 1.66, 2009/08/10 10:09:51 |
|
|
#include "term.h" |
#include "term.h" |
#include "mdoc.h" |
#include "mdoc.h" |
|
|
|
#define INDENT 5 |
|
#define HALFINDENT 3 |
|
|
/* FIXME: macro arguments can be escaped. */ |
/* FIXME: macro arguments can be escaped. */ |
|
|
#define TTYPE_PROG 0 |
#define TTYPE_PROG 0 |
|
|
termp_sh_pre(DECL_ARGS) |
termp_sh_pre(DECL_ARGS) |
{ |
{ |
/* |
/* |
* FIXME: using two `Sh' macros in sequence has no vspace |
* XXX: undocumented: using two `Sh' macros in sequence has no |
* between calls, only a newline. |
* vspace between calls, only a newline. |
*/ |
*/ |
switch (node->type) { |
switch (node->type) { |
case (MDOC_HEAD): |
case (MDOC_BLOCK): |
|
if (node->prev && MDOC_Sh == node->prev->tok) |
|
if (NULL == node->prev->body->child) |
|
break; |
term_vspace(p); |
term_vspace(p); |
|
break; |
|
case (MDOC_HEAD): |
pair->flag |= ttypes[TTYPE_SECTION]; |
pair->flag |= ttypes[TTYPE_SECTION]; |
break; |
break; |
case (MDOC_BODY): |
case (MDOC_BODY): |