version 1.4, 2000/07/06 21:06:22
|
version 1.7, 2001/07/11 23:00:57
|
Line 263 void end_mode()
|
Line 263 void end_mode()
|
case MODE_COMMENT: send("</comment>\n"); break; |
case MODE_COMMENT: send("</comment>\n"); break; |
case MODE_BLOCK: send("</block>\n"); break; |
case MODE_BLOCK: send("</block>\n"); break; |
case MODE_SCRIPT: send("</script>\n"); break; |
case MODE_SCRIPT: send("</script>\n"); break; |
case MODE_OUTTEXT: send("</outtext>\n"); break; |
case MODE_OUTTEXT: send("<endouttext />\n"); break; |
case MODE_ANSWER: send("</answergroup>\n"); break; |
case MODE_ANSWER: send("</answergroup>\n"); break; |
case MODE_NONE: break; |
case MODE_NONE: break; |
} |
} |
Line 277 void start_mode(int newmode,char* args)
|
Line 277 void start_mode(int newmode,char* args)
|
switch (newmode) { |
switch (newmode) { |
case MODE_COMMENT: send("<comment>\n"); break; |
case MODE_COMMENT: send("<comment>\n"); break; |
case MODE_BLOCK: send("<block %s>\n",args); break; |
case MODE_BLOCK: send("<block %s>\n",args); break; |
case MODE_SCRIPT: send("<script>\n"); break; |
case MODE_SCRIPT: send("<script type=\"loncapa/perl\">\n"); break; |
case MODE_OUTTEXT: send("<outtext>\n"); break; |
case MODE_OUTTEXT: send("<startouttext />\n"); break; |
case MODE_ANSWER: send("<answergroup>\n"); break; |
case MODE_ANSWER: send("<answergroup>\n"); break; |
case MODE_NONE: break; |
case MODE_NONE: break; |
} |
} |