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
53
org/testdata/headlines.html
vendored
53
org/testdata/headlines.html
vendored
|
@ -23,21 +23,15 @@ Simple Headline <code class="statistic">[1/2]</code>
|
|||
</h2>
|
||||
<ul>
|
||||
<li class="checked">
|
||||
<p>
|
||||
checked
|
||||
</p>
|
||||
<p>checked</p>
|
||||
</li>
|
||||
<li class="unchecked">
|
||||
<p>
|
||||
unchecked
|
||||
</p>
|
||||
<p>unchecked</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>
|
||||
note that statistic tokens are marked up anywhere
|
||||
<p>note that statistic tokens are marked up anywhere
|
||||
not just where they are actually meant to be - even here > <code class="statistic">[100%]</code> <
|
||||
(Org mode proper does the same)
|
||||
</p>
|
||||
(Org mode proper does the same)</p>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="headline-2">
|
||||
|
@ -50,28 +44,19 @@ Headline with todo status & priority
|
|||
Headline with TODO status
|
||||
</h2>
|
||||
<p>
|
||||
we can link to headlines that define a custom_id: <a href="#this-will-be-the-id-of-the-headline">#this-will-be-the-id-of-the-headline</a>
|
||||
</p>
|
||||
we can link to headlines that define a custom_id: <a href="#this-will-be-the-id-of-the-headline">#this-will-be-the-id-of-the-headline</a></p>
|
||||
<h2 id="headline-4">
|
||||
<span class="priority">[A]</span>
|
||||
Headline with tags & priority   <span class="tags"><span>foo</span> <span>bar</span></span>
|
||||
</h2>
|
||||
<p>
|
||||
Still outside the drawer
|
||||
</p>
|
||||
<p>
|
||||
This is inside the drawer
|
||||
</p>
|
||||
<p>
|
||||
Still outside the drawer
|
||||
</p>
|
||||
<p>Still outside the drawer</p>
|
||||
<p>This is inside the drawer</p>
|
||||
<p>Still outside the drawer</p>
|
||||
<h2 id="headline-5">
|
||||
<span class="todo">CUSTOM</span>
|
||||
headline with custom status
|
||||
</h2>
|
||||
<p>
|
||||
it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this case the setup file contains the following
|
||||
</p>
|
||||
<p>it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this case the setup file contains the following</p>
|
||||
<div class="src src-org">
|
||||
<div class="highlight">
|
||||
<pre>
|
||||
|
@ -83,20 +68,14 @@ it's possible to use <code class="verbatim">#+SETUPFILE</code> - in this cas
|
|||
<h2 id="headline-7">
|
||||
malformed property drawer
|
||||
</h2>
|
||||
<p>
|
||||
:PROPERTIES:
|
||||
not a property
|
||||
</p>
|
||||
<p>
|
||||
:END:
|
||||
</p>
|
||||
<p>:PROPERTIES:
|
||||
not a property</p>
|
||||
<p>:END:</p>
|
||||
<h2 id="headline-8">
|
||||
level limit for headlines to be included in the table of contents
|
||||
</h2>
|
||||
<p>
|
||||
The toc option allows setting a <a href="https://orgmode.org/manual/Export-settings.html">level limit</a>. For this file we set it to 1 - which means that the following headlines
|
||||
won't be included in the table of contents.
|
||||
</p>
|
||||
<p>The toc option allows setting a <a href="https://orgmode.org/manual/Export-settings.html">level limit</a>. For this file we set it to 1 - which means that the following headlines
|
||||
won't be included in the table of contents.</p>
|
||||
<h3 id="headline-9">
|
||||
headline 2 not in toc
|
||||
</h3>
|
||||
|
@ -106,6 +85,4 @@ headline 3 not in toc
|
|||
<h3 id="headline-11">
|
||||
anoter headline 2 not in toc
|
||||
</h3>
|
||||
<p>
|
||||
you get the gist…
|
||||
</p>
|
||||
<p>you get the gist…</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue