Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117873 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 49526 invoked from network); 8 Jun 2022 07:51:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 8 Jun 2022 07:51:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3D3CB180503 for ; Wed, 8 Jun 2022 02:37:23 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 8 Jun 2022 02:37:22 -0700 (PDT) Received: by mail-ed1-f51.google.com with SMTP id fd25so26291986edb.3 for ; Wed, 08 Jun 2022 02:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=4UYLwMI4LUQS6YCdkYrBNySEzCfSh+kG/qIqpZ897Co=; b=iPhFkZslveJ1Hw0RfhgU+ZlDCSw9d1l/aWgD6OWR3EHHFpgF9SN6U+GQ80g6PAtdTP sKXXTTOd5z0Bdl8VDyxweBQFUwhJCKqeYOEIPjzy/8XZo9fZJ+lAEy10mW3LOeR63g46 C8jTdGEiuQAcUt+t7YMr4oILz01PqC6MBBulaCwcnxwyM1KJzF5Kk2yYBL36UGnbD/Ex bQU4lRjA8pXRbqDyrX9Ih7ucJk1Ebzzl/CUKQ5SxSYqdZ4S+6oaweYV7l36VTZN7p8Ev wLxxmsgmfhE8Ue2lC2Nx0hqYcoNq9C6ljcoOx8l3U+RNqixUSu2ebDrpz37AacNy3CSM vYrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=4UYLwMI4LUQS6YCdkYrBNySEzCfSh+kG/qIqpZ897Co=; b=k2yvwhkPYaDqf27Sb3yaCRNFyXShUFoYgY+v6FleqEVtRsxTALOBfmdM6Du+COlgnr UprQvLkCCwZieh/7815mr4giXeCCTGTTkc4V2TrcBnLh1q+l9FweS6Qc9oXPbqtfj++l OFCCS3C4Ny8GAr2cdl4Idq0eOsGgY0fq/xvelOT1Yk53DfD1V0vrSrsNOPXLxnXCVVGP 5ONPfbKTdhMk3lbaVKkX8zw6d2r3JZO/g4efYhhd4rzE4wGprquyNqlkoIClt0rRv/qB pSS9fHFZEgGnrZtvS8/4BceEBuiR83Bc1OCqjH2N1TathGDY3s3w9ocS7kFys3OSe+8t 1MWg== X-Gm-Message-State: AOAM5304dI3rAiiwYkAbS1kUxHEVcavM9Iy6qr2OwzVhLYTkn4TZyNNK 98ELg9ioHQIRibZJu4zrvCo= X-Google-Smtp-Source: ABdhPJzdScVqwu0pzkq9Tw/R/gTOuKTmwqJu3XyljMwK1+2YnGBKayjuTwL9xNrgxGaQACuhJuTgJQ== X-Received: by 2002:a05:6402:5114:b0:42f:b5f3:1f96 with SMTP id m20-20020a056402511400b0042fb5f31f96mr26687567edd.260.1654681041496; Wed, 08 Jun 2022 02:37:21 -0700 (PDT) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id o9-20020a170906600900b006fec8e5b8a9sm8880963ejj.152.2022.06.08.02.37.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Jun 2022 02:37:20 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) In-Reply-To: Date: Wed, 8 Jun 2022 11:37:19 +0200 Cc: Robert Landers , shinji igarashi , internals Content-Transfer-Encoding: quoted-printable Message-ID: <563B99A1-88D9-4EA9-AAB3-982C3A6495C6@gmail.com> References: To: Sara Golemon X-Mailer: Apple Mail (2.3696.100.31) Subject: =?us-ascii?Q?Re=3A_=5BPHP-DEV=5D_Adding_new_closing_tag_=3D=3F=3E?= =?us-ascii?Q?_for_keeping_trailing_newline?= From: claude.pache@gmail.com (Claude Pache) > Le 8 juin 2022 =C3=A0 05:34, Sara Golemon a =C3=A9crit= : >=20 >=20 > declare(ignore_newline_after_close_tag=3Dfalse); // defaults to true, = i.e > existing behavior >=20 > This would avoid any new syntax rules, but still provide the ability = for > php-as-template-engine to behave in the user's preferred mode. >=20 No, because the user=E2=80=99s preferred mode is not a global one, it is = a local one. You do not want to keep newlines in the following = situation: ``` * line 1 * line 2 * line 3 * line 4 ``` With a global switch, not only you have failed to solve the real problem = (doing the Right Thing with newlines), but also you have created another = one (looking at the top of the file in order to understand the code). = You have the worst of both world. =E2=80=94Claude=