Rev 10051 | Rev 12242 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 10051 | Rev 11125 | ||
---|---|---|---|
Line 239... | Line 239... | ||
239 | int i,j; unsigned int n; |
239 | int i,j; unsigned int n; |
240 | i=f->linepointer; buf[0]=0; |
240 | i=f->linepointer; buf[0]=0; |
241 | if(i>=f->linecnt || f->textbuf==NULL) return EOF; |
241 | if(i>=f->linecnt || f->textbuf==NULL) return EOF; |
242 | n=f->lines[i].llen; |
242 | n=f->lines[i].llen; |
243 | if(n>=buflen) n=buflen-1; |
243 | if(n>=buflen) n=buflen-1; |
244 | if(n>0) memmove(buf,f->lines[i].address,n) |
244 | if(n>0) memmove(buf,f->lines[i].address,n); |
- | 245 | buf[n]=0; |
|
245 | for(j=i+1;j<f->linecnt && f->lines[j].isstart==0;j++); |
246 | for(j=i+1;j<f->linecnt && f->lines[j].isstart==0;j++); |
246 | f->l=i; f->linepointer=j; |
247 | f->l=i; f->linepointer=j; |
247 | if(j>=f->linecnt && n==0) return EOF; else return n; |
248 | if(j>=f->linecnt && n==0) return EOF; else return n; |
248 | } |
249 | } |
249 | 250 | ||
Line 455... | Line 456... | ||
455 | if(p2==NULL) break; |
456 | if(p2==NULL) break; |
456 | if(p1>buf && *(p1-1)=='\\') continue; |
457 | if(p1>buf && *(p1-1)=='\\') continue; |
457 | *p1=0; if(*(p2-1)=='\\') *(p2-1)=0; *p2++=0; _output_(ps); ps=p2; |
458 | *p1=0; if(*(p2-1)=='\\') *(p2-1)=0; *p2++=0; _output_(ps); ps=p2; |
458 | instex_usedynamic=1; insmath(p1+2); |
459 | instex_usedynamic=1; insmath(p1+2); |
459 | } |
460 | } |
- | 461 | if(*ps) _output_(ps); |
|
460 |
|
462 | instex_usedynamic=dynsave; |
461 | } |
463 | } |
462 | else _output_(buf); |
464 | else _output_(buf); |
463 | } |
465 | } |
464 | 466 | ||
465 | /* Output routine */ |
467 | /* Output routine */ |