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:
parent
14a6d2b15a
commit
f40f10d6b4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user