It's not a big issue (as visitors won't see it at the website), but after upgrading to 4.7 there are loads of empty lines in the body of all nodes - when administering.

Note:
I didn't use tags like <p></p> or <br /> as nodes were set to Full HTML and paragraphs where seperated automatically.

Did anyone experience the same thing, and does someone how to quickly repair this for all node bodies?

Cheers,
Marc

Comments

Steve Viscido’s picture

Could this possibly be a theme issue? That is, if you switch to a different theme, does it still happen?

I know some themes that worked with 4.6.x have some issues if you switch to 4.7.0 and don't update the theme. And I had trouble even with one theme that was supposed to be 4.7.0.

I know in the past extra whitespace has been caused by theme issues (Lincoln's Revenge is notorious for this). So maybe that's the cause.

Of course if you are using the default BlueMarine theme, then that wouldn't be the answer.

styro’s picture

whether the space is caused by 'extra' markup (that wasn't there before) or not. Or what your theme is and whether or not it is a custom one.

If there is extra markup, then I suspect the filter and input type configuration.

If there is no extra markup, then it is most likely a theme CSS thing. You might want to look over what changes were needed to convert 4.6 themes to 4.7 themes.

--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Example Knowledge Base built using Drupal

Marc Bijl’s picture

Hi Steve and Anton,

Thanks for replying. It does not happen in the site, it happens in the administration area. To be more specific: in the body field of a node (administer > content > edit > body field).

For the website I use a custom theme. For the administration I use the Burnt theme. I separate these two by using section module and recognition of paths.

The site (for visitors) looks okay, and the code does not show extra markup. It's just the content of the body field for each node which shows white lines between all paragraphs. They haven't been there in 4.6.6 for sure.

As I use Full HTML as Input Format, I've never used <p></p> or <br /> to separate paragraphs. Just hitting the <enter> button twice, and Drupal would do the rest (that is, the formatting). The same as when writing a comment at drupal.org.

But now there three white lines between all paragraphs, so it looks like I've hit the <enter> button three or even four times after each paragraph :\

___________________
discover new oceans
lose sight of the shore

Steve Viscido’s picture

This sounds like a theme issue.

As an expriment, switch your admin theme to something else -- preferably one of the themes that comes out of the box for Drupal, like Bluemarine or Pushbutton (those are usually not buggy).

Does it still happen on your admin menu?

If we can narrow it down to a theme issue we can look at your theme CSS and see what's going on. Not that I am an expert, but others here are.

Marc Bijl’s picture

Don't have time right now try, but I certainly will tomorrow.
Sometimes, when fighting an issue, it's hard to think clever and see all ways to narrow down :\

Thanks for the suggestion!

___________________
discover new oceans
lose sight of the shore

Marc Bijl’s picture

Just tried another theme (bluemarine) for the administration section, but the empty lines between paragraphs were still there...

Somehow, I have to say it's not very likely the theme is causing the problem, as I've been using burnt theme for administering 4.6.6 too, without any problems. If can find some time tomorrow, I'll look a bit further and dive into de DB.

___________________
discover new oceans
lose sight of the shore

Marc Bijl’s picture

Using phpMyAdmin, I just looked to the body field in table node_revisions and noticed the empty lines there too. So I decided to take a look in the backup.sql I had use because I screwed up my database just before upgrading to 4.7.

The backup file (backup of 4.6.6 DB) is filled with "\n" all over. For example, below a part of the insert statement, regarding the node table:

INSERT INTO node VALUES (
...
...
etc, etc
...
...
and then, for the body field:
...
\n
\n<h2>Paragraph title here</h2>
\nParagraph text here, paragraph text here, paragraph text here.
\n
\nParagraph text here, paragraph text here
\n
\nParagraph text here, paragraph text here, paragraph text here, paragraph text here.
\n
\n<h2>Another paragraph title here</h2>
\nParagraph text here, paragraph text here, paragraph text here, paragraph text here.
\n
\nParagraph text here, paragraph text here, paragraph text here.
\n
\nParagraph text here, paragraph text here
\n
\nParagraph text here, paragraph text here, paragraph text here, paragraph text here.
...
...
etc, etc
...
...);

Just wondering what the "\n" is doing here...

BTW
Created backup.sql with dba module.

___________________
discover new oceans
lose sight of the shore