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

Diff for /mandoc/mdoc.c between version 1.273 and 1.274

version 1.273, 2018/12/31 04:55:46 version 1.274, 2018/12/31 07:46:07
Line 210  mdoc_ptext(struct roff_man *mdoc, int line, char *buf,
Line 210  mdoc_ptext(struct roff_man *mdoc, int line, char *buf,
                          * 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 235  mdoc_ptext(struct roff_man *mdoc, int line, char *buf,
Line 235  mdoc_ptext(struct roff_man *mdoc, int line, char *buf,
          * 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 260  mdoc_ptext(struct roff_man *mdoc, int line, char *buf,
Line 260  mdoc_ptext(struct roff_man *mdoc, int line, char *buf,
   
         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.273  
changed lines
  Added in v.1.274

CVSweb