Re: Re: Adding new closing tag =?> for keeping trailing newline

From: Date: Wed, 08 Jun 2022 12:47:50 +0000
Subject: Re: Re: Adding new closing tag =?> for keeping trailing newline
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-117874@lists.php.net to get a copy of this message
Hi, > https://github.com/php/php-src/pull/8708 > > https://www.reddit.com/r/PHP/comments/v5le6h/adding_new_closing_tag_for_keeping_trailing/ Thanks for proposing! this "feature" bothered me more than once... Maybe just 2 days (of internals and Reddit feedback) is a bit early to "give up" (but I won't blame you either). FWIW, the Twig templating engine has distinct delimiters for output ({{ ... }}) and control ({% ... %}), and the former does *not* eat newline; for the latter you can use ~%} (https://twigfiddle.com/54daye), and there are other "whitespace control" options (https://twig.symfony.com/doc/3.x/templates.html#whitespace-control). For PHP, if we could ignore BC, I would rather have ?> not eat newline, and add an optional way to do it; but we can't, so I guess the opposite (e.g. your =?>) is the best we could hope for. Regards, -- Guilliam Xavier

« previous php.internals (#117874) next »