Rev 11125 | Rev 12229 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11125 | Rev 11736 | ||
---|---|---|---|
Line 271... | Line 271... | ||
271 | void __replace_space(char *p) |
271 | void __replace_space(char *p) |
272 | { |
272 | { |
273 | char *p1 ; |
273 | char *p1 ; |
274 | for(p1=p;*p1!=0; p1++) { |
274 | for(p1=p;*p1!=0; p1++) { |
275 | if(*p1=='\\' || isspace(*p1)) *p1=' ';// replace \ and all spaces by a simple space - |
275 | if(*p1=='\\' || isspace(*p1)) *p1=' ';// replace \ and all spaces by a simple space - |
276 | if(*p1=='\"') string_modify( |
276 | if(*p1=='\"') { string_modify(p,p1,p1+1,"''"); p1++;} // replace " by '' |
277 | p1++; // replace " by '' |
- | |
278 | } |
277 | } |
279 | } |
278 | } |
280 | 279 | ||
281 | /* Error-tolerante raw math translation routine |
280 | /* Error-tolerante raw math translation routine |
282 | * Translate error-laden raw math into machine-understandable form. |
281 | * Translate error-laden raw math into machine-understandable form. |