Index: trunk/extensions/NativePreprocessor/Preprocessor_Native.php |
— | — | @@ -89,7 +89,8 @@ |
90 | 90 | $lineStart = $flags ? " lineStart=\"1\"" : ""; |
91 | 91 | return "<template$lineStart>$result</template>"; |
92 | 92 | case 'p': |
93 | | - return "<tplarg>$result</tplarg>"; |
| 93 | + $lineStart = $flags ? " lineStart=\"1\"" : ""; |
| 94 | + return "<tplarg$lineStart>$result</tplarg>"; |
94 | 95 | case 'T': |
95 | 96 | return "<title>$result</title>"; |
96 | 97 | case '|': |
Index: trunk/extensions/NativePreprocessor/preprocesstoobj.c |
— | — | @@ -724,6 +724,7 @@ |
725 | 725 | } else { |
726 | 726 | /* Prepend a literal node with the skipped braces */ |
727 | 727 | int skippedBraces = 1 /* = parentNode->count */; |
| 728 | + parentNode->flags = 0; /* We are prepending literals, so this can no longer be a lineStart */ |
728 | 729 | closeNode( parentNode->type ); |
729 | 730 | |
730 | 731 | struct node tmpnode; |