diff --git a/lib/wiki.php b/lib/wiki.php index adb382afb2d..e71478b48cf 100644 --- a/lib/wiki.php +++ b/lib/wiki.php @@ -144,6 +144,9 @@ class Wiki { break; } } + + // apply formatting to remainder of line + $line = $this->line_replace( $line ); // generate appropriate list tag $ltag = ""; @@ -172,13 +175,13 @@ class Wiki { } // ---- (at least) means a
\n"; + $buffer = $buffer . eregi_replace( "^Q. ","",$line) . "\n"; + $this->block_state = STATE_PARAGRAPH; + } + else + if (eregi("^A. ",$line) ) { + // Answer - para with an answer class + $buffer = $buffer . "
\n"; + $buffer = $buffer . eregi_replace( "^A. ","",$line ) . "\n"; + $this->block_state = STATE_PARAGRAPH; + } else { // ordinary paragraph $buffer = $buffer . "
\n";