[BACK]Return to html.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/html.c between version 1.215 and 1.216

version 1.215, 2017/06/23 02:32:12 version 1.216, 2017/07/14 15:56:37
Line 453  print_encode(struct html *h, const char *p, const char
Line 453  print_encode(struct html *h, const char *p, const char
                     (c > 0x7E && c < 0xA0))                      (c > 0x7E && c < 0xA0))
                         c = 0xFFFD;                          c = 0xFFFD;
                 if (c > 0x7E) {                  if (c > 0x7E) {
                         (void)snprintf(numbuf, sizeof(numbuf), "&#%d;", c);                          (void)snprintf(numbuf, sizeof(numbuf), "&#x%.4X;", c);
                         print_word(h, numbuf);                          print_word(h, numbuf);
                 } else if (print_escape(h, c) == 0)                  } else if (print_escape(h, c) == 0)
                         print_byte(h, c);                          print_byte(h, c);
Line 516  print_otag(struct html *h, enum htmltag tag, const cha
Line 516  print_otag(struct html *h, enum htmltag tag, const cha
                 print_indent(h);                  print_indent(h);
         else if ((h->flags & HTML_NOSPACE) == 0) {          else if ((h->flags & HTML_NOSPACE) == 0) {
                 if (h->flags & HTML_KEEP)                  if (h->flags & HTML_KEEP)
                         print_word(h, "&#160;");                          print_word(h, "&#x00A0;");
                 else {                  else {
                         if (h->flags & HTML_PREKEEP)                          if (h->flags & HTML_PREKEEP)
                                 h->flags |= HTML_KEEP;                                  h->flags |= HTML_KEEP;
Line 779  print_text(struct html *h, const char *word)
Line 779  print_text(struct html *h, const char *word)
                                 h->flags |= HTML_KEEP;                                  h->flags |= HTML_KEEP;
                         print_endword(h);                          print_endword(h);
                 } else                  } else
                         print_word(h, "&#160;");                          print_word(h, "&#x00A0;");
         }          }
   
         assert(NULL == h->metaf);          assert(NULL == h->metaf);

Legend:
Removed from v.1.215  
changed lines
  Added in v.1.216

CVSweb