1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-27 04:14:44 +01:00

Fix InlineHTML printing

This commit is contained in:
nikic 2011-05-31 18:27:39 +02:00
parent 14a6d2b15a
commit f40f10d6b4

View File

@ -606,7 +606,7 @@ class PrettyPrinter_Zend extends PrettyPrinterAbstract
} }
public function pStmt_InlineHTML(Node_Stmt_InlineHTML $node) { public function pStmt_InlineHTML(Node_Stmt_InlineHTML $node) {
return '?>' . $node->value . '<?php '; return '?>' . ("\n" === $node->value[0] ? "\n" : '') . $node->value . '<?php ';
} }
// Helpers // Helpers