Fossil SCM
When rendering text with TH1 blocks, stop without writing the rest of a block whose script ends with break, continue or return; the source of the block was written to the page.
Commit
8e21f80cff8037c589ebb83b023186b9cea5d1b735676ae6f1ceaa94875efd52
Parent
f5f2e47d271e5e2…
1 file changed
+1
-1
+1
-1
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -3002,11 +3002,11 @@ | ||
| 3002 | 3002 | } |
| 3003 | 3003 | } |
| 3004 | 3004 | if( rc==TH_ERROR ){ |
| 3005 | 3005 | zResult = (char*)Th_GetResult(g.interp, &n); |
| 3006 | 3006 | sendError(pOut,zResult, n, 1); |
| 3007 | - }else{ | |
| 3007 | + }else if( rc==TH_OK ){ | |
| 3008 | 3008 | sendText(pOut,z, i, 0); |
| 3009 | 3009 | } |
| 3010 | 3010 | Th_SetOutputBlob(origOut); |
| 3011 | 3011 | return rc; |
| 3012 | 3012 | } |
| 3013 | 3013 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -3002,11 +3002,11 @@ | |
| 3002 | } |
| 3003 | } |
| 3004 | if( rc==TH_ERROR ){ |
| 3005 | zResult = (char*)Th_GetResult(g.interp, &n); |
| 3006 | sendError(pOut,zResult, n, 1); |
| 3007 | }else{ |
| 3008 | sendText(pOut,z, i, 0); |
| 3009 | } |
| 3010 | Th_SetOutputBlob(origOut); |
| 3011 | return rc; |
| 3012 | } |
| 3013 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -3002,11 +3002,11 @@ | |
| 3002 | } |
| 3003 | } |
| 3004 | if( rc==TH_ERROR ){ |
| 3005 | zResult = (char*)Th_GetResult(g.interp, &n); |
| 3006 | sendError(pOut,zResult, n, 1); |
| 3007 | }else if( rc==TH_OK ){ |
| 3008 | sendText(pOut,z, i, 0); |
| 3009 | } |
| 3010 | Th_SetOutputBlob(origOut); |
| 3011 | return rc; |
| 3012 | } |
| 3013 |