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

Diff for /mandoc/html.c between version 1.244 and 1.246

version 1.244, 2018/11/26 01:38:23 version 1.246, 2018/12/15 19:30:26
Line 357  static int
Line 357  static int
 print_encode(struct html *h, const char *p, const char *pend, int norecurse)  print_encode(struct html *h, const char *p, const char *pend, int norecurse)
 {  {
         char             numbuf[16];          char             numbuf[16];
         struct tag      *t;  
         const char      *seq;          const char      *seq;
         size_t           sz;          size_t           sz;
         int              c, len, breakline, nospace;          int              c, len, breakline, nospace;
Line 383  print_encode(struct html *h, const char *p, const char
Line 382  print_encode(struct html *h, const char *p, const char
   
                 if (breakline &&                  if (breakline &&
                     (p >= pend || *p == ' ' || *p == ASCII_NBRSP)) {                      (p >= pend || *p == ' ' || *p == ASCII_NBRSP)) {
                         t = print_otag(h, TAG_DIV, "");                          print_otag(h, TAG_BR, "");
                         print_text(h, "\\~");  
                         print_tagq(h, t);  
                         breakline = 0;                          breakline = 0;
                         while (p < pend && (*p == ' ' || *p == ASCII_NBRSP))                          while (p < pend && (*p == ' ' || *p == ASCII_NBRSP))
                                 p++;                                  p++;
Line 405  print_encode(struct html *h, const char *p, const char
Line 402  print_encode(struct html *h, const char *p, const char
                         continue;                          continue;
   
                 esc = mandoc_escape(&p, &seq, &len);                  esc = mandoc_escape(&p, &seq, &len);
                 if (ESCAPE_ERROR == esc)  
                         break;  
   
                 switch (esc) {                  switch (esc) {
                 case ESCAPE_FONT:                  case ESCAPE_FONT:
                 case ESCAPE_FONTPREV:                  case ESCAPE_FONTPREV:
Line 425  print_encode(struct html *h, const char *p, const char
Line 419  print_encode(struct html *h, const char *p, const char
                 case ESCAPE_SKIPCHAR:                  case ESCAPE_SKIPCHAR:
                         h->flags |= HTML_SKIPCHAR;                          h->flags |= HTML_SKIPCHAR;
                         continue;                          continue;
                   case ESCAPE_ERROR:
                           continue;
                 default:                  default:
                         break;                          break;
                 }                  }
Line 448  print_encode(struct html *h, const char *p, const char
Line 444  print_encode(struct html *h, const char *p, const char
                         c = mchars_spec2cp(seq, len);                          c = mchars_spec2cp(seq, len);
                         if (c <= 0)                          if (c <= 0)
                                 continue;                                  continue;
                           break;
                   case ESCAPE_UNDEF:
                           c = *seq;
                         break;                          break;
                 case ESCAPE_DEVICE:                  case ESCAPE_DEVICE:
                         print_word(h, "html");                          print_word(h, "html");

Legend:
Removed from v.1.244  
changed lines
  Added in v.1.246

CVSweb