From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32887 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shaun Kulesa Newsgroups: gmane.text.pandoc Subject: Re: Man To Html and Markdown unexpected '}' Date: Tue, 27 Jun 2023 12:32:46 -0700 (PDT) Message-ID: <4148511d-7db0-4f0d-ba3d-c597eff7d7f7n@googlegroups.com> References: <9737ab5c-7484-444b-91d1-b0398cf05db3n@googlegroups.com> <3DCCBCA7-BA6A-43CC-A213-9C05E2CDC68E@gmail.com> <61430B3A-3D18-4A70-90EA-A3BD310E677F@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4492_2141542904.1687894366763" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9345"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDRN5ZPM54KRBYHS5SSAMGQEQUSEH4Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 27 21:32:51 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qEEQl-0002FF-H4 for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 27 Jun 2023 21:32:51 +0200 Original-Received: by mail-oo1-f56.google.com with SMTP id 006d021491bc7-56340665b09sf2184642eaf.2 for ; Tue, 27 Jun 2023 12:32:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1687894370; x=1690486370; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=+zqGzr+wmNdNUaV6jRE4KTCRl8u+ATkS8p7/YZ35CdI=; b=CvDcz7pkimdGbu3+Kt8RGxPWCuViq39hzWMjVB4IQI9NTpC+0OwJ3Ky3KT3pYoJ6oK FhlT07oAkQTIxSOf34EUehIAq7crO1jGbRApxV11S+teFOiK/sHxUbksT93Wdo0xYabZ x8NlduTu2DfroHl8hUvN2nS3vmA9Iamh1WthD66KKuTkMIdDGJOjcpjeIpfrSeSRgOPi o6KovxXAS9weFYx3c7gIIxFx03T/luoK0BVK6X1UuxW2yo8lk0Fbc63UDJFEqWYt8iAh RQln2xnoJ9TgWWSvECik3lVlSouQEAJwekA1vfwYa9JAsK3yeVMKrlf/iOQnaO3i0ZFY JoyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687894370; x=1690486370; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=+zqGzr+wmNdNUaV6jRE4KTCRl8u+ATkS8p7/YZ35CdI=; b=RNhALE1thCzdr4MXn0Viaj2avaXM/3NMoy9m3krkaGGox7KEmrHmVP3QXK8uY0EnN1 7TJSInhlKdz6EO+ty1XWXcYM8C0vgK5fVIc53C2/eGWlMQA3x7nZMDSvMfa6+y84d0yS YRo+ZDn7/cs+3/+pCPdHHLrCV3OyNOJ4FiV3J2Gjwm/Tt7LR1Qgon6Ocaum1hlwyTCKn eeCHmVtMXQEp2H5g7VCWpfiZOmPfe6DFFdJlxJxotF/83sHcub4rliDxLhI5sVnFGKvf pklG+Pt+EO/IWpDnItlx4mQfgW94vJWxH7/PbXpZ7JmCOJgnh5GldzY7fpRVZq0bEGcl vNsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687894370; x=1690486370; 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-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=+zqGzr+wmNdNUaV6jRE4KTCRl8u+ATkS8p7/YZ35CdI=; b=hCnJ6SDHg+jiol3N7yVD8XUWwP3C/DmlzxFOHdaGYb3a9tf1RYwZLjVms/TSbawiGG ozfpC4pfPrDW4uNPxiRySX7pNp1huz6aF8T2uFhFPCnRQKHHEir8zFuaycyyB0y41vQ5 XUT0JeOhcHgxSyTEw1DkuTeGi2abn5HTKGFtzP5oFikZ7rCxhbTWJ0VU4KgRLUoC4J0g JoT34lF6CrIysHO4tRR/GlDivWmMM+kXwCWHVATDkbK99dluphyc2ngLEAomQisxWiOI cP9VGd9e9ZF36fl4rU0xHBlRwnNdZqV5AFai2Xas9GJRLKfTV8 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDxnEAlXr0MFe9bka+S3D/NEKz88fN4FBUaHGz1rHgfkx3wL75VS LCVMIrGg2wftHsMNkRw1W5w= X-Google-Smtp-Source: ACHHUZ4PpqYAYiZM9ibmWdNhPm82jS+7jSGJC4vIk1fdHFFhcCz2Xqr78IaNmTJzQ9b5JD6hvmXR9Q== X-Received: by 2002:a4a:c4cd:0:b0:563:50a6:80ed with SMTP id g13-20020a4ac4cd000000b0056350a680edmr5164847ooq.1.1687894370446; Tue, 27 Jun 2023 12:32:50 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:aa8a:0:b0:55e:3da7:dd38 with SMTP id d10-20020a4aaa8a000000b0055e3da7dd38ls1529895oon.0.-pod-prod-08-us; Tue, 27 Jun 2023 12:32:47 -0700 (PDT) X-Received: by 2002:a05:6808:1582:b0:3a2:945e:874 with SMTP id t2-20020a056808158200b003a2945e0874mr534185oiw.1.1687894367507; Tue, 27 Jun 2023 12:32:47 -0700 (PDT) In-Reply-To: <61430B3A-3D18-4A70-90EA-A3BD310E677F-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: shaunkulesa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:32887 Archived-At: ------=_Part_4492_2141542904.1687894366763 Content-Type: multipart/alternative; boundary="----=_Part_4493_1910562592.1687894366763" ------=_Part_4493_1910562592.1687894366763 Content-Type: text/plain; charset="UTF-8" Thank you very much, I am sorry to waste your time with such an easy mistake. I haven't worked with files like this ever (I didn't even know they existed) so it overwhelmed me when searching through it. On Tuesday, 27 June 2023 at 19:23:46 UTC+1 John MacFarlane wrote: > OK, here's where it seems to have trouble: > > % pandoc -f man > .ie n \l'\\n(^lu\(ul' > .el \{\ > .\" Draw four-sided box normally, but don't draw top of > .\" box if the box started on an earlier page. > .ie !\\n(^b-1 \{\ > > \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul' > .\} > .el \}\ > > \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul' > .\} > .\} > .fi > > Error at (line 8, column 6): > unexpected '}' > .el \}\ > ^ > I THINK this is a bug in macros.man > At line 8, it should be > .el \{\ > > The meaning of this is: > > if ... > else { > if .. { > } > else { <- thing I fixed > ... > } > } > endif > > > > > On Jun 27, 2023, at 7:59 AM, Shaun Kulesa wrote: > > > > Hello, thank you for testing. > > > > The error seems to originate from man.macros which the files import. > > > > I am no expert with man files so if you or anyone else here could have a > look then I would appreciate it very much. > > > > pandoc --from man --to html < tclsh.1 > output.html > > > > On Sunday, 25 June 2023 at 18:09:25 UTC+1 John MacFarlane wrote: > > I tried both files and pandoc had no problems with them. Perhaps you're > using an old version of pandoc? > > > > > On Jun 24, 2023, at 4:49 PM, Shaun Kulesa wrote: > > > > > > > > > > > > -- > > 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/c826178b-53c9-4a8a-9da1-68d78510e5fen%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/4148511d-7db0-4f0d-ba3d-c597eff7d7f7n%40googlegroups.com. ------=_Part_4493_1910562592.1687894366763 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you very much, I am sorry to waste your time with such an easy mistak= e.=C2=A0

I haven't worked with files like this ever (I= didn't even know they existed) so it overwhelmed me when searching through= it.

On Tuesday, 27 June 2023 at 19:23:46 UTC+1 John MacFarlan= e wrote:
OK, = here's where it seems to have trouble:

% pandoc -f man
.ie n \l'\\n(^lu\(ul'
.el \{\
.\" Draw four-sided box normally, but don't draw top of
.\" box if the box started on an earlier page.
.ie !\\n(^b-1 \{\
\h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L= 9;\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
.\}
.el \}\
\h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\= n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
.\}
.\}
.fi

Error at (line 8, column 6):
unexpected '}'
.el \}\
^
I THINK this is a bug in macros.man
At line 8, it should be
.el \{\

The meaning of this is:

if ...
else {
if .. {
}
else { <- thing I fixed
...
}
}
endif



> On Jun 27, 2023, at 7:59 AM, Shaun Kulesa <shaun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=20
> Hello, thank you for testing.
>=20
> The error seems to originate from man.macros which the files impor= t.
>=20
> I am no expert with man files so if you or anyone else here could = have a look then I would appreciate it very much.
>=20
> pandoc --from man --to html < tclsh.1 > output.html
>=20
> On Sunday, 25 June 2023 at 18:09:25 UTC+1 John MacFarlane wrote:
> I tried both files and pandoc had no problems with them. Perhaps y= ou're using an old version of pandoc?=20
>=20
> > On Jun 24, 2023, at 4:49 PM, Shaun Kulesa <shaun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:=20
> >=20
> > <tclsh.1>=20
>=20
>=20
> --=20
> 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..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c826178= b-53c9-4a8a-9da1-68d78510e5fen%40googlegroups.com.
> <tclsh.1><man.macros>

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/4148511d-7db0-4f0d-ba3d-c597eff7d7f7n%40googlegroups.= com.
------=_Part_4493_1910562592.1687894366763-- ------=_Part_4492_2141542904.1687894366763--