summaryrefslogtreecommitdiffstats
path: root/mdoc_markdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_markdown.c')
-rw-r--r--mdoc_markdown.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c
index 6fcaceb3..ae06201e 100644
--- a/mdoc_markdown.c
+++ b/mdoc_markdown.c
@@ -1419,8 +1419,7 @@ md_pre_Xr(struct roff_node *n)
static int
md_pre__T(struct roff_node *n)
{
- if (n->parent != NULL && n->parent->tok == MDOC_Rs &&
- n->parent->norm->Rs.quote_T)
+ if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T)
md_word("\"");
else
md_rawword("*");
@@ -1432,8 +1431,7 @@ static void
md_post__T(struct roff_node *n)
{
outflags &= ~MD_spc;
- if (n->parent != NULL && n->parent->tok == MDOC_Rs &&
- n->parent->norm->Rs.quote_T)
+ if (n->parent->tok == MDOC_Rs && n->parent->norm->Rs.quote_T)
md_word("\"");
else
md_rawword("*");