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

Blank lines are appearing in Page source

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hey Suresh,

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

Regards,

Peter

View solution in original post

7 Replies

Avatar

Level 10

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?

Avatar

Level 10

Are blank lines appearing in rendered content?

Avatar

Level 2

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

Level 10

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

Level 2

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

Correct answer by
Community Advisor

Hey Suresh,

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

Regards,

Peter