From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14737 Path: news.gmane.org!not-for-mail From: Matthew Pickering Newsgroups: gmane.text.pandoc Subject: Re: Can I eliminate newlines between elements in generated HTML? Date: Fri, 8 Apr 2016 17:35:08 +0100 Message-ID: References: <5f012215-b6af-4fa3-b8a7-e8ba2b51ac9b@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1460133317 23926 80.91.229.3 (8 Apr 2016 16:35:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2016 16:35:17 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCO2LGEC4AIBBPN3T64AKGQEZBSSLPA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 08 18:35:11 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wm0-f61.google.com ([74.125.82.61]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aoZNG-0001lH-6G for gtp-pandoc-discuss@m.gmane.org; Fri, 08 Apr 2016 18:35:10 +0200 Original-Received: by mail-wm0-f61.google.com with SMTP id e65sf6336849wma.0 for ; Fri, 08 Apr 2016 09:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:mime-version:in-reply-to:references:date:message-id:subject :from:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=SsHAQsKYCiKvECYhHG5PdnZKrR7+hRw5G1wAj9UJ9l8=; b=ph7AKTTCqiF/4lIuItYGLspJ100dlCpcGvU+1FM52RHKK5yYL4D1YNFK+SpZhnFZXu 2Hz13pmT7nOL9N0rduqIZVgG+plD0/soF0apG6/+Nh2uCHcZgTqMF4EQr0qORdxLO3xV BfgbF4yriD0Xega9c8ZI6a5BNq91mBbimyYiojLhXMdVVJwvj2R0EqAn9QxvdUKmYbXM 95ticsmlObOY5WyDKEyvsZp3Bu4TDXHApXYmENn+MSYbmiVfanYovGIWecZZ25q6CZrC LxsiHX6kwirASgQsD7f17QC21td+4/iWQEmPXS9oOY6ysiP8SUfiPa19IPNnAX4RCUyL 7yPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=SsHAQsKYCiKvECYhHG5PdnZKrR7+hRw5G1wAj9UJ9l8=; b=FEj84Jt9pYbLY1lyBNeakhQ9UbpbWVY24I7br+tXo2oZCSHP3FopRoxK9dKhG7pGgJ gqOpLKdtjdGi+h6ornd3ZZbXBR60iMSeJTTwxVbfohJQFaB5ik0IvvAcl2dhEyyNdpDd uYan6Bw8KjYaJTEwM/cqu74uN1gc4CJUZDCe3SBeRXXydNLby7D41xhXYl/VwqJxr8ey vSqaYo3yTwQb/Omek1JlzHyyYYaifzgardC6SttdCpfblvx0pSBo2moY9FhpKytVV3Q/ fUxpUK4y75HpAxmcE6LWyi0FUyVD68O/8sYBnj5g5BRvGo5V1y6I0O/i+BYgFBu3y33g YkpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=SsHAQsKYCiKvECYhHG5PdnZKrR7+hRw5G1wAj9UJ9l8=; b=RfOuwv0ROiS9X7C6kxqzFe3+1WLCby8Z1P6kMmQwh0Q+WB1BwhAQbN30rXL3Pak5xh nV4mZyCO4nVncZq5Kip2+B4+V4npxztep/1XscEJl2ge4WcLzf4+iJzpcD3XR70am4zN lbu6ev+qoIinOhufuvzkkKfaUlFp4sZ0/aNBUNlNoL4OvY1Hn8lnjwRyszTzXjpokTS/ EJwbTeKy3DDMBVgb+vGuUlsXYHlt5wg9H9bLzRaeNhQjW/UfmuiU8fQkHAAPnTANQg2v 4Kl9lYiCnZeyTwded5/KC6uXM8iiUuVONYeWUqZ/TsfNW5kTAaanNfv+ekwTH6LPUj+M 53tA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AD7BkJJO63ml0/oiwGIqmxl/CzGxt1UUWvwjBOL2eX/lpLaQf4xfs9cga2XYwIyfm+Nx2w== X-Received: by 10.25.4.2 with SMTP id 2mr155415lfe.19.1460133309788; Fri, 08 Apr 2016 09:35:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.25.21.69 with SMTP id l66ls486841lfi.100.gmail; Fri, 08 Apr 2016 09:35:09 -0700 (PDT) X-Received: by 10.112.198.230 with SMTP id jf6mr1151884lbc.12.1460133309121; Fri, 08 Apr 2016 09:35:09 -0700 (PDT) Original-Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com. [2a00:1450:4010:c07::230]) by gmr-mx.google.com with ESMTPS id ai9si446214lbc.2.2016.04.08.09.35.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Apr 2016 09:35:09 -0700 (PDT) Received-SPF: pass (google.com: domain of matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c07::230 as permitted sender) client-ip=2a00:1450:4010:c07::230; Original-Received: by mail-lf0-x230.google.com with SMTP id c126so83560040lfb.2 for ; Fri, 08 Apr 2016 09:35:09 -0700 (PDT) X-Received: by 10.25.85.145 with SMTP id j139mr3944600lfb.131.1460133308983; Fri, 08 Apr 2016 09:35:08 -0700 (PDT) Original-Received: by 10.112.85.162 with HTTP; Fri, 8 Apr 2016 09:35:08 -0700 (PDT) In-Reply-To: <5f012215-b6af-4fa3-b8a7-e8ba2b51ac9b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4010:c07::230 as permitted sender) smtp.mailfrom=matthewtpickering-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14737 Archived-At: Can you please describe what you are doing? You mention that you're going markdown -> html -> pdf (why?) The answer to your question is that pre is a block level element and pandoc inserts newlines after each block from what I remember. On Fri, Apr 8, 2016 at 5:24 PM, Matt Haggard wrote: > 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 >> '
hello
world
' | >> pandoc -t html5 >> >>
>> >>
hello
>> >>
world
>> >>
>> >> >> 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 >> '
hello
world
' | >> pandoc -t html5 >> >>
>> >>
hello
world
>> >>
>> >> >> 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/5f012215-b6af-4fa3-b8a7-e8ba2b51ac9b%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout.