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

Diff for /mandoc/roff_escape.c between version 1.7 and 1.8

version 1.7, 2022/06/02 11:29:07 version 1.8, 2022/06/02 14:51:41
Line 127  roff_escape(const char *buf, const int ln, const int a
Line 127  roff_escape(const char *buf, const int ln, const int a
         case '\0':          case '\0':
                 iendarg = --iend;                  iendarg = --iend;
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
           case '.':
         case '\\':          case '\\':
         default:          default:
                 iarg--;                  iarg--;
Line 136  roff_escape(const char *buf, const int ln, const int a
Line 137  roff_escape(const char *buf, const int ln, const int a
         case ' ':          case ' ':
         case '\'':          case '\'':
         case '-':          case '-':
         case '.':  
         case '0':          case '0':
         case ':':          case ':':
         case '_':          case '_':
Line 481  out:
Line 481  out:
                 err = MANDOCERR_ESC_UNSUPP;                  err = MANDOCERR_ESC_UNSUPP;
                 break;                  break;
         case ESCAPE_UNDEF:          case ESCAPE_UNDEF:
                 if (buf[inam] == '\\')                  if (buf[inam] == '\\' || buf[inam] == '.')
                         return rval;                          return rval;
                 err = MANDOCERR_ESC_UNDEF;                  err = MANDOCERR_ESC_UNDEF;
                 break;                  break;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

CVSweb