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

Diff for /pod2mdoc/pod2mdoc.c between version 1.2 and 1.3

version 1.2, 2014/03/20 15:15:32 version 1.3, 2014/03/20 15:18:56
Line 263  formatcode(const char *buf, size_t *start, 
Line 263  formatcode(const char *buf, size_t *start, 
                         formatcode(buf, start, end, 1, last, nomacro);                          formatcode(buf, start, end, 1, last, nomacro);
                         continue;                          continue;
                 }                  }
                 if ('\n' != buf[*start]) {  
                         /*                          /*
                          * Make sure that any macro-like words (or                           * Make sure that any macro-like words (or
                          * really any word starting with a capital                           * really any word starting with a capital
Line 274  formatcode(const char *buf, size_t *start, 
Line 274  formatcode(const char *buf, size_t *start, 
                         if ((' ' == last || '\n' == last) &&                          if ((' ' == last || '\n' == last) &&
                                 isupper(buf[*start]))                                  isupper(buf[*start]))
                                 printf("\\&");                                  printf("\\&");
                         putchar(last = buf[*start]);  
                 }                  last = buf[*start];
                   if ('\n' == last)
                           last = ' ';
                   putchar(last);
   
                 (*start)++;                  (*start)++;
         }          }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb