Blank lines are appearing in Page source | Community
Skip to main content
Level 2
March 28, 2019
Solved

Blank lines are appearing in Page source

  • March 28, 2019
  • 7 replies
  • 3231 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Peter_Puzanovs

Hey Suresh,

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

Regards,

Peter

7 replies

Gaurav-Behl
Level 10
March 28, 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?

smacdonald2008
Level 10
March 28, 2019

Are blank lines appearing in rendered content?

Level 2
March 28, 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.

smacdonald2008
Level 10
March 28, 2019

Nice site btw!

smacdonald2008
Level 10
March 28, 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.

Level 2
April 16, 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

Peter_Puzanovs
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
April 16, 2019

Hey Suresh,

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

Regards,

Peter