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

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

version 1.10, 2019/04/12 08:48:16 version 1.11, 2019/04/12 09:01:48
Line 216  print_text(struct format *f, const char *word, int fla
Line 216  print_text(struct format *f, const char *word, int fla
 {  {
         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 227  print_text(struct format *f, const char *word, int fla
Line 225  print_text(struct format *f, const char *word, int fla
                 macro_close(f);                  macro_close(f);
                 break;                  break;
         }          }
           if (f->linestate == LINE_NEW && (*word == '.' || *word == '\''))
                   fputs("\\&", stdout);
         while (*word != '\0') {          while (*word != '\0') {
                 putchar(*word);                  putchar(*word);
                 if (*word++ == '\\')                  if (*word++ == '\\')

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

CVSweb