내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

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 채택된 해결책 개

Avatar

정확한 답변 작성자:
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

원본 게시물의 솔루션 보기

7 답변 개

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

Nice site btw!

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

정확한 답변 작성자:
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