[wp-trac] [WordPress Trac] #25646: figcaption should not be treated as a block by wpautop()
WordPress Trac
noreply at wordpress.org
Mon Mar 17 19:33:24 UTC 2014
#25646: figcaption should not be treated as a block by wpautop()
--------------------------+--------------------
Reporter: laacz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Formatting | Version: 3.6.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+--------------------
Comment (by nacin):
Replying to [comment:8 johnbillion]:
> [27527] helped this on its way but has not completed fixed the issue. A
`<br>` is still inserted within `<figure>`, however this occurs regardless
of whether there's a `<figcaption>` in there or not.
>
> Is there a way we can treat `<figure>` like `<pre>` and treat its
contents as-is?
I'm not sure contents should be treated as-is... Wouldn't a line break be
preferred in some instances?
Some unit tests to explain expected and actual (when figcaption is present
and isn't) would go a long way to fixing this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25646#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list