Article submission adds parasitic <p> </p> with non-breakable white space
-
The one way I can clearly reproduce is posting and article with TOC in the form:
* ...
Is it wrong? In this case, submission process adds empty paragraphs before and after this fragment:
These empty paragraphs are, unfortunately, well visible, because the content of these paragraphs is a non-breakable space. (Implementing of formatting side effects via using of such special characters is usually described as discouraged technique.) Thank you.
—SA
Sergey A Kryukov
-
The one way I can clearly reproduce is posting and article with TOC in the form:
* ...
Is it wrong? In this case, submission process adds empty paragraphs before and after this fragment:
These empty paragraphs are, unfortunately, well visible, because the content of these paragraphs is a non-breakable space. (Implementing of formatting side effects via using of such special characters is usually described as discouraged technique.) Thank you.
—SA
Sergey A Kryukov
Before you click the Publish button, try checking the box "I'm an expert - don't mess with my HTML" (or something to that effect).
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
Before you click the Publish button, try checking the box "I'm an expert - don't mess with my HTML" (or something to that effect).
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013Thank you, John. Of course I do exactly that. What I describe happens in this case, too.
—SA
Sergey A Kryukov
-
Thank you, John. Of course I do exactly that. What I describe happens in this case, too.
—SA
Sergey A Kryukov
It hit me yesterday. I experienced it when I switched from "source" mode (not using the Ace source editor). It's also not constrained by lists. It happened A LOT.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013 -
It hit me yesterday. I experienced it when I switched from "source" mode (not using the Ace source editor). It's also not constrained by lists. It happened A LOT.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013Exactly.
Sergey A Kryukov
-
The one way I can clearly reproduce is posting and article with TOC in the form:
* ...
Is it wrong? In this case, submission process adds empty paragraphs before and after this fragment:
These empty paragraphs are, unfortunately, well visible, because the content of these paragraphs is a non-breakable space. (Implementing of formatting side effects via using of such special characters is usually described as discouraged technique.) Thank you.
—SA
Sergey A Kryukov
The issue here is that our editor (CKEditor) is using the HTML 4 standard which says the DIV element cannot be inside another block-level element, like a P element. In HTML5 the DIV element can be found inside and can contain other flow content elements, like P and DIV. We were looking to move to CKEditor5 but it's moved to a method we've seen other editors adopt as well: not allowing HTML source editing at all. This provides them a lot of flexibility for new features (eg they can output whatever HTML they want, or Markdown, or whatever) while ensuring the final layout can never be messed up by someone adding custom HTML through a source view and another editor wrecking that by using the editor. So long story short: Don't put a DIV inside a P block.
cheers Chris Maunder