]> git.wincent.com - wikitext.git/commitdiff
Fix PRE tokenization inside blockquotes
authorWincent Colaiuta <win@wincent.com>
Mon, 4 Feb 2008 10:52:40 +0000 (11:52 +0100)
committerWincent Colaiuta <win@wincent.com>
Mon, 4 Feb 2008 10:52:40 +0000 (11:52 +0100)
Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/wikitext_ragel.c
ext/wikitext_ragel.rl

index 11f2e7190ef74d882e8e72e1bb6a0aac9515403f..1ecb6baeb98398c4626b1e0827d44b1288641a0d 100644 (file)
@@ -640,7 +640,7 @@ _eof_trans:
        case 32:
 #line 136 "wikitext_ragel.rl"
        {te = p;p--;{
-            if (out->column_start == 1)
+            if (out->column_start == 1 || last_token_type == BLOCKQUOTE)
             {
                 REWIND();
                 EMIT(PRE);
index 8dd8cf7399eaff3c40e53db609d57af95f33d312..0906190c2f1b18a76403e076d8a7b86179e9db3e 100644 (file)
         # consider adding real <pre> and </pre> HTML tags later on
         ' ' @mark ' '*
         {
-            if (out->column_start == 1)
+            if (out->column_start == 1 || last_token_type == BLOCKQUOTE)
             {
                 REWIND();
                 EMIT(PRE);