Print this page
9718 update mandoc to 1.14.4

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mandoc/roff_html.c
          +++ new/usr/src/cmd/mandoc/roff_html.c
   1      -/*      $Id: roff_html.c,v 1.11 2017/06/24 14:38:33 schwarze Exp $ */
        1 +/*      $Id: roff_html.c,v 1.12 2018/06/25 14:53:58 schwarze Exp $ */
   2    2  /*
   3    3   * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
   4      - * Copyright (c) 2014, 2017 Ingo Schwarze <schwarze@openbsd.org>
        4 + * Copyright (c) 2014, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
   5    5   *
   6    6   * Permission to use, copy, modify, and distribute this software for any
   7    7   * purpose with or without fee is hereby granted, provided that the above
   8    8   * copyright notice and this permission notice appear in all copies.
   9    9   *
  10   10   * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11   11   * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12   12   * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13   13   * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14   14   * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
↓ open down ↓ 60 lines elided ↑ open up ↑
  75   75                          print_text(h, n->string);
  76   76                  } else
  77   77                          roff_html_pre(h, n);
  78   78          }
  79   79          roff_html_pre_br(h, n);
  80   80  }
  81   81  
  82   82  static void
  83   83  roff_html_pre_sp(ROFF_HTML_ARGS)
  84   84  {
  85      -        struct roffsu    su;
  86      -
  87      -        SCALE_VS_INIT(&su, 1);
  88      -        if ((n = n->child) != NULL) {
  89      -                if (a2roffsu(n->string, &su, SCALE_VS) == NULL)
  90      -                        su.scale = 1.0;
  91      -                else if (su.scale < 0.0)
  92      -                        su.scale = 0.0;
  93      -        }
  94      -        print_otag(h, TAG_DIV, "suh", &su);
  95      -        print_text(h, "\\~");  /* So the div isn't empty. */
       85 +        print_paragraph(h);
  96   86  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX