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

Diff for /src/usr.bin/mandoc/mdoc.c between version 1.162 and 1.163

version 1.162, 2018/12/31 04:55:42 version 1.163, 2018/12/31 07:45:42
Line 208 
Line 208 
                          * Strip trailing tabs in literal context only;                           * Strip trailing tabs in literal context only;
                          * outside, they affect the next line.                           * outside, they affect the next line.
                          */                           */
                         if (MDOC_LITERAL & mdoc->flags)                          if (mdoc->flags & ROFF_NOFILL)
                                 continue;                                  continue;
                         break;                          break;
                 case '\\':                  case '\\':
Line 233 
Line 233 
          * but add a single vertical space elsewhere.           * but add a single vertical space elsewhere.
          */           */
   
         if (buf[offs] == '\0' && ! (mdoc->flags & MDOC_LITERAL)) {          if (buf[offs] == '\0' && (mdoc->flags & ROFF_NOFILL) == 0) {
                 switch (mdoc->last->type) {                  switch (mdoc->last->type) {
                 case ROFFT_TEXT:                  case ROFFT_TEXT:
                         sp = mdoc->last->string;                          sp = mdoc->last->string;
Line 258 
Line 258 
   
         roff_word_alloc(mdoc, line, offs, buf+offs);          roff_word_alloc(mdoc, line, offs, buf+offs);
   
         if (mdoc->flags & MDOC_LITERAL)          if (mdoc->flags & ROFF_NOFILL)
                 return 1;                  return 1;
   
         /*          /*

Legend:
Removed from v.1.162  
changed lines
  Added in v.1.163