From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31533 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: preserve-tabs and line_blocks Date: Wed, 12 Oct 2022 09:11:45 -0700 Message-ID: <00528E94-4F91-40DC-89A2-F7D25C42B83A@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37205"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBRGOTONAMGQERT57FKA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Oct 12 18:11:52 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f187.google.com ([209.85.219.187]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oieKl-0009Uw-It for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 12 Oct 2022 18:11:51 +0200 Original-Received: by mail-yb1-f187.google.com with SMTP id t8-20020a258388000000b006bfb0865043sf12076484ybk.13 for ; Wed, 12 Oct 2022 09:11:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665591110; cv=pass; d=google.com; s=arc-20160816; b=NlEshTqiICn9zOovtTNUYsrk+AAI1VT4gpvCK9abPfG1fTyJKN4nEEtfPhJYjc2r0W owAuXGg44deiV46TPsNW4jpcttjL4xbHG1ytPFduJzOzKfAAAjJtWrqh/uaAZCcGdTFd E4s/szxSV+yQpdpHFQbwSW+C4Mwm5Faq0BJQy3Qmp1LiII+uAMZiq01oRAYuFPBFowyw sWPLtViX/YT7EcchKvsSxvSkVE4kWyvgj+PgW7l8X4iL3PKDuQKqZ7xtcLs1nQnMLoMD bzXj0JjI3AcyPbGAL/8uuZwZo8cgvESux2jMjt5B2lyRHjq6Hx3I4JxBUxvqRIHziIh0 r3ZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=o/BK/8vwGJsl8CMhgZIYJXUxnAkz+JvzlmuNptIxfRI=; b=scliHRvbnJ0BMEn5qSRCyCYuOCV3M7HsF53l6GHca+LGt8s6WqfEHRAciObV5Plb75 2ZDLSR9XFNkhERCQKC3bG0L1lB3Rfru/O4jiGCZOr+9jX5aau7dccf3BdUXGCqeQx7al x4wc5I7UNoo9jQObeXtW3N/9I/maipjm7BLkK9lbuSgMu3XT4vc/CKm2iBKphRBUZ0l/ RWenWgn3kjAFQuUKnxih15fCpPxl8Nj2MoM8w16ZBvvfzqJtIOXPkWVFlguQJxZTQlBT BhvS2qO38jzYBWDAbK6teIgOJsN3E+JkEM+ACOGiHMYCEsKyy7PLDVHj4IpP3R2qZoip pnZA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xoy+x1aU; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=o/BK/8vwGJsl8CMhgZIYJXUxnAkz+JvzlmuNptIxfRI=; b=ju5Sxf9p5UPWMwvBlNfEqV6ZYAPB+J+VuUhwFGqdraRACWBW5t6Q8xvVR7Plr6Q07k 4geoFuXlqP4MRiQUOTCQzLHriDtZbTeDjWuDyspL5Aqyzbc8hxo+8BqMuHx0VUZSLAuG NS06GiDlswjVM918Abi8kVB+WeuG/8BCKGuRDP3J6vDpEyyQP88uLo/xWNFXXhkVb7y0 HmwI8HiAEJgmk706hNFTt5IA7QpbPgnPrbmPNgYrzc42GLqy3lU0UEmSiVLqpmVzC5l4 TbJ8b79DmgNftwimGHiANMrjel2jhz3nRJgZN46g404wjc7rbbUL951OfLd1SErauu/n oN5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=o/BK/8vwGJsl8CMhgZIYJXUxnAkz+JvzlmuNptIxfRI=; b=ExY67/JTB8O5j7QKdgSI8FcUVGYpobEUmnp3n+Tl150C6Y/tPONR+dQ9C7Wxlf0grT h4+S548+FdipypQGTvoHdQSpikGcrUHOudfYxPfMTV5zDQ0tIIcR4rSczHdO1C/3F4MO WZmV9fWpFxkdpc/XjHp1Fg/SIGS37uvEYkY3Gt/FtpIgdRHQtal+Qv7EOiTDkbqgVWi0 CRSL7CfmBKlHUNIHNsspBGvAuQQWCAyxeC4KeM/PZbtRYHJstQ0Eth1WrxH4cQUUrQ8J /2lVhAkQo6y1Ys7z3ruydQmdBZA8UaZjXqJqqsvUI57PBjrSZ0X3+KTjbL0KcwVPSy+S uXVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=o/BK/8vwGJsl8CMhgZIYJXUxnAkz+JvzlmuNptIxfRI=; b=4aB6tWFQj7D1GDZqbiZU7k0+RY6Qhdl0RvoZt4XU2ZxPnyg8wg1FAku58E6+dNZsUm z31wVDcWMELwPOSoLqVP7RXpCfegsIU2HkFeZ1WWAdRVxhDPf3jMtBSMcKEcyT2oSi0k snOp5MSypts4okv+KjXj6U3Vi7gcQO2WQeqkAaeqMmDGnWPcmIlXZzkXG+9lrDUHO+B0 N5W9+I1qfvlZbbKNCLn3faALqA0baVdbkgmUzoWAIXlLhH5jTASWweOFHQQQikr6T3LR sc9/Mmuz1uT5ZYaT6uisUYjQMIFg+ocXGXUApreYY5Q1P3 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2YkRCiWvHyQ90+c6Y/FWGv44N+dIKtBqrkAX7uRvrLoMxXFcN0 OZIjkMtopmoTb6Xm6yJyW7I= X-Google-Smtp-Source: AMsMyM6puSrcfs1XCQU9Ua1ODIeznzcsTpJk/rtgVa/Anvv4PE9kyARtQZOBhxh7Kt3H1fUW7qC3HQ== X-Received: by 2002:a81:4881:0:b0:361:5080:91fe with SMTP id v123-20020a814881000000b00361508091femr1090111ywa.485.1665591110582; Wed, 12 Oct 2022 09:11:50 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:b122:0:b0:6bc:579b:ebdd with SMTP id g34-20020a25b122000000b006bc579bebddls9028664ybj.8.-pod-prod-gmail; Wed, 12 Oct 2022 09:11:48 -0700 (PDT) X-Received: by 2002:a5b:7c5:0:b0:6c1:12dc:3f94 with SMTP id t5-20020a5b07c5000000b006c112dc3f94mr15702214ybq.640.1665591107950; Wed, 12 Oct 2022 09:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665591107; cv=none; d=google.com; s=arc-20160816; b=EdnywNHKOR17cKDJC3CidE/hXsK9uaW2OfrG17vqQCdO//fRjOgTZh4KcLKp4lRgBv O7q0h/AMh+vU994cfIAtZGsJU9cLhXNeVPQ+nQ/mGRK97yvzsl83uJMdOm4MfTIHg2pI IffwaoP73O8a7zHSmxB3OGujPWHeUrJ6NiPoSgmTuikvW9CzLqwSQROaWtKDKwaqKE7U eIeIuVK9WWlESjQmXKP1JiFQIArC8cjTxhnI6HiOEGVriPxQjXZ2BaKg7a0Bokz7SD56 Vj2iIWndi0ttKRpG2ivMnkKraz3kPph4gKcsfuXLbxvWRYp4W2eNBcYeiUx5rcWVA/Mz OuTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=FcpTFVbhk1YFvHKJq4jTq+zFcC5xjbEMVNSe/qTKMP0=; b=aIPJHLEBhhM30ZLq5tUJey/iZVT2VhgCcU+QnT/dKaQGHOJBXmaKkU9p9aJFu+EbL+ cRtah6UWqdgrpfi2lZCHOmMUqbWczCwjdp8CpcE5Sn8jjM63gzOfaIb3qpJzRiRUSm8A 6Gtum4bFCU0NKLlift8Yd0QctUCOGw0LMPItFyldPWxRownQSTPxmonaaVVCmd0D8TQK Bylu6k2e/hQfIGQk7W4nKuzpvFehTGPwI2AAP7rq50Rjq0XkyIsrzaM0FTTLZCFi+eha 9LGCgCwLGCTxtA0EY5GMmEaRmY7oxKYHaWikZnMLJp4Yrr/1KyHjHefaAvRKKRaF1DXh C5Tw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xoy+x1aU; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com. [2607:f8b0:4864:20::436]) by gmr-mx.google.com with ESMTPS id bp1-20020a05690c068100b00330253b8e8asi1242303ywb.0.2022.10.12.09.11.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Oct 2022 09:11:47 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) client-ip=2607:f8b0:4864:20::436; Original-Received: by mail-pf1-x436.google.com with SMTP id p14so12610388pfq.5 for ; Wed, 12 Oct 2022 09:11:47 -0700 (PDT) X-Received: by 2002:a65:6bc4:0:b0:439:8ff8:e2e1 with SMTP id e4-20020a656bc4000000b004398ff8e2e1mr26300876pgw.91.1665591107112; Wed, 12 Oct 2022 09:11:47 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:400:7c40:d851:48df:9a8e:6469]) by smtp.gmail.com with ESMTPSA id d2-20020a170903230200b001708c4ebbaesm6042431plh.309.2022.10.12.09.11.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Oct 2022 09:11:46 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Xoy+x1aU; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::436 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE 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-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31533 Archived-At: First, note that only initial indentation of lines is significant in line blocks; internal consecutive spaces will be collapsed anyway. Second, --preserve-tabs does apparently have an effect, but it's not what you'd expect; % printf "|\thi" | pandoc -t native [ LineBlock [ [ Str "\160\160hi" ] ] ] % printf "|\thi" | pandoc -t native --preserve-tabs [ Para [ Str "|" , Space , Str "hi" ] ] % printf "| \thi" | pandoc -t native --preserve-tabs [ LineBlock [ [ Str "\160hi" ] ] ] You should go ahead and put something about this on the bug tracker. > On Oct 12, 2022, at 2:47 AM, Alcuin York wrote: > > From my own understanding of the pandoc manual, it seems that the --preserve-tabs option does not apply to line_blocks. And from my own attempts this also appears to be the case. So, 2 questions: > > 1. Is this correct (--preserve-tabs does not apply to line_blocks). > > 2. If yes to 1, would it be possible to incorporate it into pandoc? > > > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ea4af10c-e784-4194-b1f0-b8135c76355an%40googlegroups.com.