Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Apache Sling JSP Script Handler setting for ‘Trim Spaces’

Avatar

Level 2

Hello All,

I am on AEM 6.3.

In an attempt to cleanup the html output I enabled the trimspaces option in Config Mgr on the publisher.

This did not have any effect.

I read through on the internet and saw the following : AEM 6.1 - How to Trim Whitespaces

Tried the steps, no result.

In the forum I did come across threads stating this is a bug and not supported.

Is this correct? Has anyone for this working for them?

Thank you.

Anand

1 Accepted Solution

Avatar

Correct answer by
Administrator

If this is for HTL, then this is a known limitation:- https://issues.apache.org/jira/browse/SLING-4443

Currently, there is no option to trim white space when using HTL.

It is always possible to implement a Servlet Filter in case we want this sooner than later. (google returned [0] for that)

[0] http://balusc.omnifaces.org/2007/12/whitespacefilter.html

Opinion from another expert is:-Why do you want to trim the white spaces? White space shouldn’t be a big deal in terms of bytes being requested over the wire, because you should use always use mod_inflate for any text file.Why do you want to trim the white spaces?



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

If this is for HTL, then this is a known limitation:- https://issues.apache.org/jira/browse/SLING-4443

Currently, there is no option to trim white space when using HTL.

It is always possible to implement a Servlet Filter in case we want this sooner than later. (google returned [0] for that)

[0] http://balusc.omnifaces.org/2007/12/whitespacefilter.html

Opinion from another expert is:-Why do you want to trim the white spaces? White space shouldn’t be a big deal in terms of bytes being requested over the wire, because you should use always use mod_inflate for any text file.Why do you want to trim the white spaces?



Kautuk Sahni