Print this page
9718 update mandoc to 1.14.4

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mandoc/mdoc_markdown.c
          +++ new/usr/src/cmd/mandoc/mdoc_markdown.c
   1      -/*      $Id: mdoc_markdown.c,v 1.23 2017/06/14 01:31:26 schwarze Exp $ */
        1 +/*      $Id: mdoc_markdown.c,v 1.24 2018/04/11 17:11:13 schwarze Exp $ */
   2    2  /*
   3    3   * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
   4    4   *
   5    5   * Permission to use, copy, modify, and distribute this software for any
   6    6   * purpose with or without fee is hereby granted, provided that the above
   7    7   * copyright notice and this permission notice appear in all copies.
   8    8   *
   9    9   * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
  10   10   * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11   11   * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
↓ open down ↓ 275 lines elided ↑ open up ↑
 287  287                  n = n->next;
 288  288          }
 289  289  }
 290  290  
 291  291  static void
 292  292  md_node(struct roff_node *n)
 293  293  {
 294  294          const struct md_act     *act;
 295  295          int                      cond, process_children;
 296  296  
 297      -        if (n->flags & NODE_NOPRT)
      297 +        if (n->type == ROFFT_COMMENT || n->flags & NODE_NOPRT)
 298  298                  return;
 299  299  
 300  300          if (outflags & MD_nonl)
 301  301                  outflags &= ~(MD_nl | MD_sp);
 302  302          else if (outflags & MD_spc && n->flags & NODE_LINE)
 303  303                  outflags |= MD_nl;
 304  304  
 305  305          act = NULL;
 306  306          cond = 0;
 307  307          process_children = 1;
↓ open down ↓ 1262 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX