diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-16 03:00:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-16 03:00:23 +0000 |
commit | 873dc9b1d77212924c035df9c1accfbb3a4a6a7e (patch) | |
tree | 808bfc450c8bb7abb5f7f1c1b43d0af1d149b29d /mdoc_macro.c | |
parent | 08e529bf9f1013c38e9f15c21bac1c75922a0d3e (diff) | |
download | mandoc-873dc9b1d77212924c035df9c1accfbb3a4a6a7e.tar.gz mandoc-873dc9b1d77212924c035df9c1accfbb3a4a6a7e.tar.zst mandoc-873dc9b1d77212924c035df9c1accfbb3a4a6a7e.zip |
Remove the ENDBODY_NOSPACE flag, simplifying the code.
Comparing to groff output, it appears that all cases where it was used
and made a difference actually require the opposite, ENDBODY_SPACE.
I have no idea why i added it back in 2010; maybe to compensate for
some other bug that has long been fixed.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index dedff380..a7ec6739 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -1,7 +1,7 @@ -/* $Id: mdoc_macro.c,v 1.215 2017/02/11 15:47:16 schwarze Exp $ */ +/* $Id: mdoc_macro.c,v 1.216 2017/02/16 03:00:23 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2010, 2012-2016 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010, 2012-2017 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -420,7 +420,7 @@ find_pending(struct roff_man *mdoc, int tok, int line, int ppos, "%s breaks %s", mdoc_macronames[tok], mdoc_macronames[n->tok]); mdoc_endbody_alloc(mdoc, line, ppos, - tok, target, ENDBODY_NOSPACE); + tok, target); } } } @@ -634,7 +634,7 @@ blk_exp_close(MACRO_PROT_ARGS) mdoc_macronames[later->tok]); endbody = mdoc_endbody_alloc(mdoc, line, ppos, - atok, body, ENDBODY_SPACE); + atok, body); if (tok == MDOC_El) itblk->flags |= NODE_ENDED | NODE_BROKEN; |