Rev 11132 | Rev 12247 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11132 | Rev 12122 | ||
---|---|---|---|
Line 288... | Line 288... | ||
288 | continue; |
288 | continue; |
289 | } |
289 | } |
290 | } |
290 | } |
291 | p[0]=find_word_start(p[0]); |
291 | p[0]=find_word_start(p[0]); |
292 | strncpy(nbuf,p[0],MAX_LINELEN); nbuf[MAX_LINELEN]=0; subst(nbuf); |
292 | strncpy(nbuf,p[0],MAX_LINELEN); nbuf[MAX_LINELEN]=0; subst(nbuf); |
- | 293 | strip_trailing_spaces(nbuf);singlespace(nbuf); |
|
- | 294 | if (strlen(nbuf)>= MAX_PROMPTLEN) oef_error("Answer prompt too long"); |
|
293 | nbuf[MAX_PROMPTLEN]=0; |
295 | nbuf[MAX_PROMPTLEN]=0; |
294 |
|
296 | pp=nbuf+strlen(nbuf)-1; |
295 | if(*pp=='=') *pp=0; |
297 | if(*pp=='=') *pp=0; |
296 | p[1]=find_word_start(p[1]); |
298 | p[1]=find_word_start(p[1]); |
297 | if(*p[1]=='\\' && (isalnum(*(p[1]+1)) || *(p[1]+1)=='_')) { |
299 | if(*p[1]=='\\' && (isalnum(*(p[1]+1)) || *(p[1]+1)=='_')) { |
298 | /* check for analyzed answers */ |
300 | /* check for analyzed answers */ |
299 | int i,n; char *pt; |
301 | int i,n; char *pt; |