Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Extra spaces in HTML output

Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 3, 2012

When my pages are generated, Confluence is adding extra spaces to the output.

Does anyone know why, or how to prevent it, or how to work around this bug?

I've checked the layout pages and the spaces appear in between some DIVs. It's not consistent, and it's not the same number of space characters. And they are not &nbsp's, so only Chrome renders them (the output looks fine in Firefox and IE).

1 answer

1 accepted

0 votes
Answer accepted
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2012

Turns out that it was the use of <span> tags in the Page Layout file. Confluence interprets spaces in span tags as literals and does not strip them out. I had used a few to do indentation and they were being passed through to the rendered page.

Damn!

matt

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events