Blank lines are appearing in Page source

Avatar

Avatar

suresingh

Avatar

suresingh

suresingh

28-03-2019

Hi

When viewing the page source of the website, getting continuous blank lines on the page source. How can i achieve removing these blank lines?

I already tried by checking the Minify option present in HTML Library Manager, but no luck.

Steps to reproduce:

(1)Open Coca-Cola® | Taste The Feeling!

(2)Go to page source. Check blank lines appearing.

1720686_pastedImage_4.png

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

PuzanovsP

MVP

Avatar

PuzanovsP

MVP

PuzanovsP
MVP

16-04-2019

Hey Suresh,

Create your won PostProcessingFilter to modify html output with that, you can remove any output you don't need.

Regards,

Peter

Answers (6)

Answers (6)

Avatar

Avatar

suresingh

Avatar

suresingh

suresingh

16-04-2019

There must be some way using which this can be achieved. If you see the page source of the below website, it achives blank space issue in page source. Any clue?

KPMG International - KPMG Global

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

28-03-2019

I am not seeing any blank lines in the page. As far a page source - there is not much that can be done - as far as i know.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

28-03-2019

Nice site btw!

Avatar

Avatar

suresingh

Avatar

suresingh

suresingh

28-03-2019

I am using HTL and content is rendering properly in the browser.

But once you open page property (for example Coca-Cola® | Taste The Feeling! ), you see blank lines appearing.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

28-03-2019

Are blank lines appearing in rendered content?

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

28-03-2019

couple of old articles -

Adobe CQ/Adobe AEM: How to Remove White Space From Generated HTML In CQ (Or In general)

AEM 6.1 - How to Trim Whitespaces

Do you use jsp or HTL?

How does those blank lines impact your functionality as they are in page source and not visible to end user or to SEO engines?