From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31776 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: man page indent Date: Sun, 20 Nov 2022 12:36:39 -0800 Message-ID: References: <329d7440-178e-40c1-b4fa-2dadaea66295n@googlegroups.com> 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="32626"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBWU75KNQMGQEZYMH6HQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Nov 20 21:36:46 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f186.google.com ([209.85.166.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1owr3V-0008GL-VU for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 20 Nov 2022 21:36:46 +0100 Original-Received: by mail-il1-f186.google.com with SMTP id x10-20020a056e021bca00b00302b6c0a683sf3159811ilv.23 for ; Sun, 20 Nov 2022 12:36:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668976604; cv=pass; d=google.com; s=arc-20160816; b=PhD/5yfVWMzQk8O373kMxB5/iWjj/JBJuL5r1rOy29Llr4p1shrs6oYDk44hlmOGO6 mSQtEOTmmcpCQPCQByB7q18TNlrXfR3GQdSsMFuhDChYjj0mwAt41+436IMmQnEeYiuQ GkCKNBBz1Yw47Yyu6zklO9KI7Kt3CLC62ZcfNE5oU/1LBL92NTZivn34rhJeLDEb7I4N RMkprIBZVEwCSyLhJ0afwa8b2SHJB+rE8w3YY3aPuVsVs4zR6mRxTbGdrXozqJ6Sa9Rq j+Xg87O88u9aUA4un3YkECcpSbD+L64XSnFx+I7cxhhc0+aPv4MWFGT08ySa8UaekXlY NYaA== 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=Z14V+7IhUaidwlTcTUwMpsSIfR+q2pULZvuy1lKi6iQ=; b=rzuowY9a1Zv2Zrv2seNElbJ2xjfxHsepzh8fQp+BSSoMsWeZHtnAn1D9/TAMo1e921 wMlmdflj1yE6eSM9Gs1l08AVEwPlY7izhvdPFiOJC0mWxaesnKBRtuHbYX2PCTtXPm9N nOBR6s2nYeyiLrRhHjvqPSfS2VXnvqD1uv1l+i2mF99boN0rK++RDhMA3UADrE6i1r7z TCy7bqgl4N8EgviKPCKUzAvZsHBkIiJICBe5Bm6ukcwvGx4ngtsVWqUSE+768X8Qtgl+ TE+oIFo9pu+H9B6W2phJ8E02UMWgwSQOCxwlOoUVuq5yJAXwNPasTf4/zGHOzjBQmpIy AGbA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="AxSjVO/r"; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1029 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=Z14V+7IhUaidwlTcTUwMpsSIfR+q2pULZvuy1lKi6iQ=; b=OyzYr1Ijin7pwE6y2gzrpBqflRskM1fHEt9x3klzXWLM0BgjCm4ldiJ5HNBClWdt6t wsvyZmiVlNqKlqx/wYB8HnqlXA8iUdGkvTbIV7pvbgUh/uaG3rmWCt1bk5ro5YyAKz7c jh3Nrv8lgTeZBhr6eJ86rQKNKy6K+vu5nwXdwvnhiSp4cKG0no/RiBvFuVS5ooJRJyVS 70TIyeexsF7LeO80rWITr3r/WriyRVNTriaEE9/NsapA1ZszqvTnSYdrGb0llzOxMkM6 NhrXMHCIolfoHZGz22W9WPb///OPqaoEdCXusPkW/7YzEU4OmG6alwiVr82PWhHlzBH0 AIzQ== 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=Z14V+7IhUaidwlTcTUwMpsSIfR+q2pULZvuy1lKi6iQ=; b=DPAUFc45WeVR8xHrklOaUrLpruLAhsAVF7x/ZNOnHBFiI6+LlGvYz7QdWSPwN36/S2 Aws5EW/oTI8H3SI5AWs5ypQFVCMHfwDXot6WXlfzqXX/IIGFMRtnMPamIyPS7eqaQtaj fAbowYLw4ugi9o1VVNFJvldHkhATTprsgUK7QqxwlBTLIRQ+L26EG0WY9GG6kHlq0+ro US34OsxEpkNWoJ4Zvah+0lrW3btHHtJpO0eCQwOcfEjHJdfcT2gg4KuTatqweSpqnU+F 7Tq8WoBCF8242ueKyhOiIGl+IGVUTmtoZLpOvD7fslGIELU9dUeWulou8kvH0gMSob0D 0+Eg== 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=Z14V+7IhUaidwlTcTUwMpsSIfR+q2pULZvuy1lKi6iQ=; b=KMADYaLxkWPxSNgh3SAMjBiGEBpW2dAP1bKtJZhhFitrRa+1lTzJ3pqStq0Sh6vd9E Km2NiN9PopOdKosQS5hXTvIO3StcOIacveohobgMLbhrgdz4cn5hqRd16OvSyOIgc/gk hy0UbKgcR5ZaWn2s2d5YW21SE6Qh7Qha1XC8dGiyC6Cj8wnRW/NlUrkkGnkedeZgublQ jbZkXdpcdNB11xCWYWhxFnh7Fwn/zMWmpumQ4iEVv7fJPs/Ps53ddgzmuWdWLCERIASJ +HatqiqOR3xJCPuvfmdKpvN9TdjdQrlcjIjuUsqU2AwUFF Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pkPQjvLHybxWSAcTkN+qNkQpfhpF/LnIof/sNpKQg78/i+Pizi6 lME5OB6bbpZYGU4JqKdNTUk= X-Google-Smtp-Source: AA0mqf4szXEXCFxMjjbWIrBM5I+nW+K3k7GQEeZmYkLdOlP5wfdpvcQEjy4624O7808QWbW20BhpWQ== X-Received: by 2002:a92:50e:0:b0:302:51fd:4f9c with SMTP id q14-20020a92050e000000b0030251fd4f9cmr6536305ile.205.1668976604703; Sun, 20 Nov 2022 12:36:44 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6e02:12b0:b0:302:bc67:c390 with SMTP id f16-20020a056e0212b000b00302bc67c390ls308858ilr.7.-pod-prod-gmail; Sun, 20 Nov 2022 12:36:42 -0800 (PST) X-Received: by 2002:a05:6e02:b4b:b0:2ff:dfa7:f306 with SMTP id f11-20020a056e020b4b00b002ffdfa7f306mr44937ilu.9.1668976602200; Sun, 20 Nov 2022 12:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668976602; cv=none; d=google.com; s=arc-20160816; b=cfR0c2Cu6d79lzyMU74Lo8HDPtF3GoAV/XnKnKZzomyxYYe94WWoNA3ehW6VxOEbas v8n0jfo5RK3l6un1P0l6lc1iryn28rQE1sAckTOzCuD0F3AufXlyshtnCB/LjRI8V0zb H8zKVF5WPcGSiSurCiDl8271caVom6ED7nbvNgoI2lK5rRUCVoY1Yjm0H0Tdw7ggOp2T c3CzXlodPy61ts1JxC8WCSmrCzRjx3INBaUinzcNbdVGfLn8lxxNcvAUjK5yBVJjWlIu F/3BCuvSnVnErzx8JA+NHp5j8xQSIBZv6ibX7YGShAqtRJGuEay0FfdVgX4Cg9TJrime vekw== 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=MDGomOHU8+J290cOADtyB1dxCueeIqYVmIDsV68GTsc=; b=XbVyDiWX47Olr6AT/p4Fkch9rpZ/0M6g93uTpEqygwq60FUpU5fub6YhCSdcHNNw2K or+fw4yxkwZuEX8XoHa0sAspcEpIP5H6hqaeuYqraqKkbX3ZXgg0khspFeqCxqAMmbeh RsVqH01LG+3h7I9Jo3M2ltD++n1kNILQQpDYXG5c4jCnA067z2QWo1YDNat534+fVInE 116nNJgexDBMQ+JQD5ALUMZu4wDFm/MtAxr3dxRPFQocoQQ0phL+xdlINcZ5nxJL4pLh vFr+Jt0tPnzQzuAwrGMaoI3VM1xZ9YmPCfB82KWxesAXIVrVHeKjyB5yY3TJKXj2JO8V fv2g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="AxSjVO/r"; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1029 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-pj1-x1029.google.com (mail-pj1-x1029.google.com. [2607:f8b0:4864:20::1029]) by gmr-mx.google.com with ESMTPS id bw18-20020a056602399200b006d9c1177a7dsi542917iob.3.2022.11.20.12.36.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Nov 2022 12:36:42 -0800 (PST) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1029 as permitted sender) client-ip=2607:f8b0:4864:20::1029; Original-Received: by mail-pj1-x1029.google.com with SMTP id u6-20020a17090a5e4600b0021881a8d264so7222887pji.4 for ; Sun, 20 Nov 2022 12:36:42 -0800 (PST) X-Received: by 2002:a17:903:26c7:b0:186:e01d:8f2f with SMTP id jg7-20020a17090326c700b00186e01d8f2fmr8710837plb.40.1668976601286; Sun, 20 Nov 2022 12:36:41 -0800 (PST) Original-Received: from smtpclient.apple ([2601:644:400:7c40:21c2:c22c:2b70:b7b5]) by smtp.gmail.com with ESMTPSA id e1-20020a170902784100b00189240585a7sm346561pln.173.2022.11.20.12.36.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Nov 2022 12:36:40 -0800 (PST) In-Reply-To: <329d7440-178e-40c1-b4fa-2dadaea66295n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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="AxSjVO/r"; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1029 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:31776 Archived-At: Sorry, I am not sure I follow. Please give a small example of the input you're using (markdown?). I don't see any difference between the indentation of the man page for pandoc and, say, emacs on my system. > On Nov 20, 2022, at 9:24 AM, Rick Stanley wrote: > > In any Standard Library man page, that displays example code, the line "Program Source" is indented by 4 spaces, and the source code is indented by 8. > In creating my own man page, using pandoc, the "Program Source" line is indented by 8, and my source is indented by 16 spaces. I would prefer the same indentation for all my man pages. > > I don't have lua installed and would prefer not to use if if at all possible. I am writing pure C. > > Thank you! > > On Sunday, November 20, 2022 at 11:57:59 AM UTC-5 fiddlosopher wrote: > Are you saying you want code blocks to be indented to the same level as the man page's body text? > > You could achieve that with a lua filter that resets paragraph indentation before each code block. Save this as unindent_code.lua: > > ``` > function CodeBlock(el) > return { pandoc.RawBlock("man", '.IP "" 0'), el } > end > ``` > > Then use --lua-filter unindent_code.lua on the command line when you convert to man. > > > > > On Nov 20, 2022, at 6:12 AM, Rick Stanley wrote: > > > > When using __Program Source__ in creating a man page, it indents 8 spaces not 4. How to manage the indent level when using 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/cbe22587-8440-4e39-861f-e2ccdcb4dd7an%40googlegroups.com. > > > -- > 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/329d7440-178e-40c1-b4fa-2dadaea66295n%40googlegroups.com.