html: Remove cosmetic whitespace inside p tags
All tags are put on a line by themselves to help with visual diffing. Apparently this extra cosmetic whitespace causes problems inside p tags for ppl who want to use `white-space: pre`. Not much hurt for visual diffing in removing cosmetic whitespace for just p tags and can't think of anything that would break because of this right now. So let's do it and wait for things to break.
This commit is contained in:
parent
30dd2794cf
commit
a383eef7a6
15 changed files with 216 additions and 577 deletions
13
org/testdata/captions.html
vendored
13
org/testdata/captions.html
vendored
|
@ -1,6 +1,4 @@
|
|||
<p>
|
||||
Anything can be captioned.
|
||||
</p>
|
||||
<p>Anything can be captioned.</p>
|
||||
<figure>
|
||||
<div class="src src-sh">
|
||||
<div class="highlight">
|
||||
|
@ -19,13 +17,10 @@ captioned link (image in this case)
|
|||
</figcaption>
|
||||
</figure>
|
||||
<p>
|
||||
note that the whole paragraph is captioned, so a linebreak is needed for images to caption correctly
|
||||
</p>
|
||||
note that the whole paragraph is captioned, so a linebreak is needed for images to caption correctly</p>
|
||||
<figure>
|
||||
<p>
|
||||
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" />
|
||||
see?
|
||||
</p>
|
||||
<p><img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" />
|
||||
see?</p>
|
||||
<figcaption>
|
||||
captioned link (image in this case)
|
||||
</figcaption>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue