"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mdoc_man.c" between
mdocml-1.14.1rc1.tar.gz and mdocml-1.14.1rc2.tar.gz

About: mdocml is a suite of tools compiling "-mdoc", the roff macro package of choice for BSD manual pages, and "-man", the predominant historical package for UNIX manuals. Hint: The installed binary name is "mandoc". Release candidate.

mdoc_man.c  (mdocml-1.14.1rc1):mdoc_man.c  (mdocml-1.14.1rc2)
/* $Id: mdoc_man.c,v 1.102 2017/02/06 03:44:58 schwarze Exp $ */ /* $Id: mdoc_man.c,v 1.104 2017/02/17 19:15:41 schwarze Exp $ */
/* /*
* Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2011-2017 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
* copyright notice and this permission notice appear in all copies. * copyright notice and this permission notice appear in all copies.
* *
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
skipping to change at line 641 skipping to change at line 641
* Lastly, conditionally run the post-node handler. * Lastly, conditionally run the post-node handler.
*/ */
if (NODE_ENDED & n->flags) if (NODE_ENDED & n->flags)
return; return;
if (cond && act->post) if (cond && act->post)
(*act->post)(meta, n); (*act->post)(meta, n);
if (ENDBODY_NOT != n->end) if (ENDBODY_NOT != n->end)
n->body->flags |= NODE_ENDED; n->body->flags |= NODE_ENDED;
if (ENDBODY_NOSPACE == n->end)
outflags &= ~(MMAN_spc | MMAN_nl);
} }
static int static int
cond_head(DECL_ARGS) cond_head(DECL_ARGS)
{ {
return n->type == ROFFT_HEAD; return n->type == ROFFT_HEAD;
} }
static int static int
skipping to change at line 722 skipping to change at line 719
outflags |= MMAN_nl; outflags |= MMAN_nl;
} }
} }
static int static int
pre__t(DECL_ARGS) pre__t(DECL_ARGS)
{ {
if (n->parent && MDOC_Rs == n->parent->tok && if (n->parent && MDOC_Rs == n->parent->tok &&
n->parent->norm->Rs.quote_T) { n->parent->norm->Rs.quote_T) {
print_word(""); print_word("\\(lq");
putchar('\"');
outflags &= ~MMAN_spc; outflags &= ~MMAN_spc;
} else } else
font_push('I'); font_push('I');
return 1; return 1;
} }
static void static void
post__t(DECL_ARGS) post__t(DECL_ARGS)
{ {
if (n->parent && MDOC_Rs == n->parent->tok && if (n->parent && MDOC_Rs == n->parent->tok &&
n->parent->norm->Rs.quote_T) { n->parent->norm->Rs.quote_T) {
outflags &= ~MMAN_spc; outflags &= ~MMAN_spc;
print_word(""); print_word("\\(rq");
putchar('\"');
} else } else
font_pop(); font_pop();
post_percent(meta, n); post_percent(meta, n);
} }
/* /*
* Print before a section header. * Print before a section header.
*/ */
static int static int
pre_sect(DECL_ARGS) pre_sect(DECL_ARGS)
 End of changes. 4 change blocks. 
8 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS