For my own edification, it would be nice if this module would also preserve linebreaks between styled paragraphs.

For instance, if I center-align a paragraph, the code that results should show as this:

Example first paragraph, which is a normal paragraph with no styling.

<p style="text-align: center;">This paragraph was centered in TinyMCE, so it has a style attribute.</p>

A third paragraph, again without styling.

However, with WYSIWYG Force Linebreaks installed, the code turns into:

Example first paragraph, which is a normal paragraph with no styling.
<p style="text-align: center;">This paragraph was centered in TinyMCE, so it has a style attribute.</p>

A third paragraph, again without styling.

It'd be great if that second paragraph's spacing would be preserved. This issue doesn't affect anything besides my OCD-tendencies, but it'd be nice to have nonetheless.

CommentFileSizeAuthor
#3 updated-linebreaks_js.diff895 bytesgeerlingguy

Comments

geerlingguy’s picture

Heh... I'm seconding my own request here. Just ran into a page where almost every other paragraph is styled, and it's annoying as heck.

geerlingguy’s picture

Status: Active » Fixed

Used attached patch to fix (just added newlines before and after special paragraphs when they were placed).

Commits:

geerlingguy’s picture

StatusFileSize
new895 bytes

This time, I'm actually attaching the patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.