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

Diff for /docbook2mdoc/macro.c between version 1.9 and 1.10

version 1.9, 2019/04/11 04:23:22 version 1.10, 2019/04/12 08:48:16
Line 212  macro_nodeline(struct format *f, const char *name, str
Line 212  macro_nodeline(struct format *f, const char *name, str
  * line otherwise.  The flag ARG_SPACE inserts spaces between words.   * line otherwise.  The flag ARG_SPACE inserts spaces between words.
  */   */
 void  void
 print_text(struct format *f, const char *word, int flags) {  print_text(struct format *f, const char *word, int flags)
   {
         switch (f->linestate) {          switch (f->linestate) {
         case LINE_NEW:          case LINE_NEW:
                   if (*word == '.' || *word == '\'')
                           fputs("\\&", stdout);
                 break;                  break;
         case LINE_TEXT:          case LINE_TEXT:
                 if (flags & ARG_SPACE)                  if (flags & ARG_SPACE)
Line 224  print_text(struct format *f, const char *word, int fla
Line 227  print_text(struct format *f, const char *word, int fla
                 macro_close(f);                  macro_close(f);
                 break;                  break;
         }          }
         fputs(word, stdout);          while (*word != '\0') {
                   putchar(*word);
                   if (*word++ == '\\')
                           putchar('e');
           }
         f->linestate = LINE_TEXT;          f->linestate = LINE_TEXT;
         f->flags = 0;          f->flags = 0;
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

CVSweb