version 1.11, 2018/12/04 02:53:51 |
version 1.13, 2018/12/14 01:18:26 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
|
#include <assert.h> |
#include <assert.h> |
#include <stddef.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
|
|
#include "mandoc.h" |
#include "mandoc.h" |
Line 66 roff_valid_br(ROFF_VALID_ARGS) |
|
Line 66 roff_valid_br(ROFF_VALID_ARGS) |
|
if (n->child != NULL) |
if (n->child != NULL) |
mandoc_vmsg(MANDOCERR_ARG_SKIP, man->parse, |
mandoc_vmsg(MANDOCERR_ARG_SKIP, man->parse, |
n->line, n->pos, "br %s", n->child->string); |
n->line, n->pos, "br %s", n->child->string); |
|
|
|
if (n->next != NULL && n->next->type == ROFFT_TEXT && |
|
*n->next->string == ' ') { |
|
mandoc_msg(MANDOCERR_PAR_SKIP, man->parse, n->line, n->pos, |
|
"br before text line with leading blank"); |
|
roff_node_delete(man, n); |
|
return; |
|
} |
|
|
if ((np = n->prev) == NULL) |
if ((np = n->prev) == NULL) |
return; |
return; |