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

Diff for /mandoc/man_macro.c between version 1.127 and 1.130

version 1.127, 2018/08/17 20:33:37 version 1.130, 2018/08/18 15:13:32
Line 71  static const struct man_macro man_macros[MAN_MAX - MAN
Line 71  static const struct man_macro man_macros[MAN_MAX - MAN
         { in_line_eoln, MAN_NSCOPED }, /* PD */          { in_line_eoln, MAN_NSCOPED }, /* PD */
         { in_line_eoln, 0 }, /* AT */          { in_line_eoln, 0 }, /* AT */
         { in_line_eoln, MAN_NSCOPED }, /* in */          { in_line_eoln, MAN_NSCOPED }, /* in */
           { blk_imp, MAN_BSCOPE }, /* SY */
           { blk_close, MAN_BSCOPE }, /* YS */
         { in_line_eoln, 0 }, /* OP */          { in_line_eoln, 0 }, /* OP */
         { in_line_eoln, MAN_BSCOPE }, /* EX */          { in_line_eoln, MAN_BSCOPE }, /* EX */
         { in_line_eoln, MAN_BSCOPE }, /* EE */          { in_line_eoln, MAN_BSCOPE }, /* EE */
Line 223  blk_close(MACRO_PROT_ARGS)
Line 225  blk_close(MACRO_PROT_ARGS)
                         return;                          return;
                 }                  }
                 break;                  break;
           case MAN_YS:
                   ntok = MAN_SY;
                   break;
         case MAN_UE:          case MAN_UE:
                 ntok = MAN_UR;                  ntok = MAN_UR;
                 break;                  break;
Line 257  blk_close(MACRO_PROT_ARGS)
Line 262  blk_close(MACRO_PROT_ARGS)
         if (buf[*pos] != '\0') {          if (buf[*pos] != '\0') {
                 roff_word_alloc(man, line, ppos, buf + *pos);                  roff_word_alloc(man, line, ppos, buf + *pos);
                 man->last->flags |= NODE_DELIMC;                  man->last->flags |= NODE_DELIMC;
                   if (mandoc_eos(man->last->string, strlen(man->last->string)))
                           man->last->flags |= NODE_EOS;
         }          }
   
         /* Move a trailing paragraph behind the block. */          /* Move a trailing paragraph behind the block. */
Line 264  blk_close(MACRO_PROT_ARGS)
Line 271  blk_close(MACRO_PROT_ARGS)
         if (ctok == MAN_LP || ctok == MAN_PP || ctok == MAN_P) {          if (ctok == MAN_LP || ctok == MAN_PP || ctok == MAN_P) {
                 *pos = strlen(buf);                  *pos = strlen(buf);
                 blk_imp(man, ctok, cline, cpos, pos, buf);                  blk_imp(man, ctok, cline, cpos, pos, buf);
           }
   
           /* Synopsis blocks need an explicit end marker for spacing. */
   
           if (tok == MAN_YS && man->last == nn) {
                   roff_elem_alloc(man, line, ppos, tok);
                   man_unscope(man, man->last);
         }          }
 }  }
   

Legend:
Removed from v.1.127  
changed lines
  Added in v.1.130

CVSweb