public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Can I eliminate newlines between elements in generated HTML?
@ 2016-04-08 16:23 Matt Haggard
       [not found] ` <c109325f-d784-4711-b7a5-f73e70f14edb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Haggard @ 2016-04-08 16:23 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1421 bytes --]

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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c109325f-d784-4711-b7a5-f73e70f14edb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 6561 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-08 22:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-08 16:23 Can I eliminate newlines between elements in generated HTML? Matt Haggard
     [not found] ` <c109325f-d784-4711-b7a5-f73e70f14edb-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-08 16:24   ` Matt Haggard
     [not found]     ` <5f012215-b6af-4fa3-b8a7-e8ba2b51ac9b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-08 16:35       ` Matthew Pickering
     [not found]         ` <CALuQ0m8ahc2a7+7x08--c+msno39oFxhhRxHdRa+vvwv6B6VZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-08 16:40           ` Matt Haggard
     [not found]             ` <b5fcdda1-aac1-4390-84ee-18d745e7a06c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2016-04-08 21:53               ` John MacFarlane
     [not found]                 ` <20160408215335.GA61469-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2016-04-08 22:53                   ` Matt Haggard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).