views:

46

answers:

2

I am on Drupal6, and even with the WYSIWYG disabled, something is putting in white space where I don't expect it.

For example if I enter:

<p>HI there (you)</p>

All is good.

If I enter:

<p>HI there (<strong>you</strong>)</p>

I get a space between the opening parentheses and "you":

Hi there ( you)

When I save and go back in to the body textarea I see:

<p>HI there (
<strong>you</strong>)</p>

So something is putting a line break in the plain text, creating that space. It is not a <br> tag, just a \n in the HTML. Any idea how to solve this?

A: 
Jimmy
A: 

Turns out, this was not ckeditor or filters. I am tidying the output markup using tidy, and forgot I was doing it. The output-xml and ouput-html options, which ASFAIK just control pretty printing, were adding spaces. I set those to false, and the problem went away.

Aaron

related questions