Bah... google groups messed up the newlines, but maybe you get the idea?

On Friday, April 8, 2016 at 10:23:55 AM UTC-6, Matt Haggard wrote:
I have a filter that adds elements to code blocks (for bolding, italics, etc.).  We go markdown -> html -> pdf and have noticed that sometimes there is an extra erroneous space between these custom elements in the final PDF.  This breaks copying and pasting.

It's because pandoc adds newlines between some elements in the generated HTML.  This shows and example:

echo -e '<div><pre><code>hello</code></pre><pre><code>world</code></pre></div>' | pandoc -t html5

<div>

<pre><code>hello</code></pre>

<pre><code>world</code></pre>

</div>


Is there a way I can get the output of the above to instead be this?  (or even match the original input string)

echo -e '<div><pre><code>hello</code></pre><pre><code>world</code></pre></div>' | pandoc -t html5

<div>

<pre><code>hello</code></pre><pre><code>world</code></pre>

</div>


Thank you!

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5f012215-b6af-4fa3-b8a7-e8ba2b51ac9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.