Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2647C200D35 for ; Tue, 7 Nov 2017 11:10:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 24F72160C10; Tue, 7 Nov 2017 10:10:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3803E160C07 for ; Tue, 7 Nov 2017 11:10:09 +0100 (CET) Received: (qmail 8244 invoked by uid 500); 7 Nov 2017 10:10:07 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 7182 invoked by uid 99); 7 Nov 2017 10:10:06 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2017 10:10:06 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 5764F87B3F; Tue, 7 Nov 2017 10:10:06 +0000 (UTC) Date: Tue, 07 Nov 2017 10:10:41 +0000 To: "commits@sling.apache.org" Subject: [sling-org-apache-sling-scripting-sightly-compiler] 21/31: SLING-6471 - [HTL] data-sly-repeat should add a new line after every appended element in the output MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: rombert@apache.org In-Reply-To: <151004940465.26468.1962099173432222651@gitbox.apache.org> References: <151004940465.26468.1962099173432222651@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: sling-org-apache-sling-scripting-sightly-compiler X-Git-Refname: refs/tags/org.apache.sling.scripting.sightly.compiler-1.0.10 X-Git-Reftype: annotated tag X-Git-Rev: 4767e51a212d9ef6918a875cb8160028a88d00d5 X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20171107101006.5764F87B3F@gitbox.apache.org> archived-at: Tue, 07 Nov 2017 10:10:10 -0000 This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.scripting.sightly.compiler-1.0.10 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-compiler.git commit 4767e51a212d9ef6918a875cb8160028a88d00d5 Author: Radu Cotescu AuthorDate: Tue Jan 17 14:31:45 2017 +0000 SLING-6471 - [HTL] data-sly-repeat should add a new line after every appended element in the output git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/scripting/sightly/compiler@1779199 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/sling/scripting/sightly/impl/plugin/RepeatPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/scripting/sightly/impl/plugin/RepeatPlugin.java b/src/main/java/org/apache/sling/scripting/sightly/impl/plugin/RepeatPlugin.java index 519d2e9..e8ca678 100644 --- a/src/main/java/org/apache/sling/scripting/sightly/impl/plugin/RepeatPlugin.java +++ b/src/main/java/org/apache/sling/scripting/sightly/impl/plugin/RepeatPlugin.java @@ -46,6 +46,7 @@ public class RepeatPlugin extends AbstractPlugin { private static final String LAST = "last"; private static final String ODD = "odd"; private static final String EVEN = "even"; + private static final OutText NEW_LINE = new OutText("\n"); public RepeatPlugin() { name = "repeat"; @@ -75,7 +76,7 @@ public class RepeatPlugin extends AbstractPlugin { @Override public void afterTagClose(PushStream stream, boolean isSelfClosing) { - stream.write(new OutText("\n")); + stream.write(NEW_LINE); } @Override -- To stop receiving notification emails like this one, please contact "commits@sling.apache.org" .