[BACK]Return to roff.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/roff.c between version 1.263 and 1.264

version 1.263, 2022/05/31 20:21:40 version 1.264, 2022/06/02 11:28:16
Line 1408 
Line 1408 
                  * it to backslashes and translate backslashes to \e.                   * it to backslashes and translate backslashes to \e.
                  */                   */
   
                 if (roff_escape(buf->buf, ln, pos,                  if (roff_escape(buf->buf, ln, pos, &iesc, &inam,
                     &iesc, &iarg, &iendarg, &iend) != ESCAPE_EXPAND) {                      &iarg, &iendarg, &iend) != ESCAPE_EXPAND) {
                         while (pos < iend) {                          while (pos < iend) {
                                 if (buf->buf[pos] == ec) {                                  if (buf->buf[pos] == ec) {
                                         buf->buf[pos] = '\\';                                          buf->buf[pos] = '\\';
Line 1425 
Line 1425 
                         }                          }
                         continue;                          continue;
                 }                  }
   
                 /*  
                  * Treat "\E" just like "\";  
                  * it only makes a difference in copy mode.  
                  */  
   
                 inam = iesc + 1;  
                 while (buf->buf[inam] == 'E')  
                         inam++;  
   
                 /* Handle expansion. */                  /* Handle expansion. */
   

Legend:
Removed from v.1.263  
changed lines
  Added in v.1.264