From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30786 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: William Lupton Newsgroups: gmane.text.pandoc Subject: Re: Got this error on Linux' one Date: Wed, 22 Jun 2022 09:24:29 +0100 Message-ID: References: <6a390800-289b-4932-9d26-b6158f76aa11n@googlegroups.com> <4ce1cfe9-8c01-4882-af2d-38ffacb7df3cn@googlegroups.com> <87a6a6nmug.fsf@zeitkraut.de> <0c95c0e6-1558-468b-b224-278d99c31332n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008cccbf05e20511bd" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28835"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBSNDZOKQMGQEUAU662Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 22 10:24:46 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pf1-f184.google.com ([209.85.210.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o3vfK-0007Jd-0E for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 22 Jun 2022 10:24:46 +0200 Original-Received: by mail-pf1-f184.google.com with SMTP id g23-20020a056a00079700b00525285ae44esf3353588pfu.13 for ; Wed, 22 Jun 2022 01:24:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655886284; cv=pass; d=google.com; s=arc-20160816; b=yJn5iZzFWjxRJtMmx+hwUKkpWKvDldrQ23ImlzuiOtozqFnVLj4DzEZ/uzOpID+OeA MFqlboua4Mv1se/cmn5vuw0lNDKqT0yFRekRrRsXfSCkiP39fZn9QtF2TJtBIJaAHqeg A9SrFBfj+4l8BgmlPcbTXYqoGHXxiwHfAseqSY26gtnj6ieK68PxH9j2N6A2SUyD8Ev5 5eGWG4stpnWswZk9kbBfXL/JoZMPFCqXR/X6LwBY1p7d+ws6ghmmh9FkXMQ5BGFSGTF2 z7mlGUIX/rNeNFDDfFJnVgqnwrwHKMoIyQED60vXNP/VH67u5HaJMOLcb2ruhz8YftX0 k3Mw== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature; bh=ubZDRNtrkQkwJrClJLOy40bBQNx9uaLBvdZstS07IAE=; b=Cd9VUhDxTczGZoPFvLdTIIKQWIiNXimIjNvVbt9x537VDMA8YBTIh52BpkpBa2j/vV 9F2zsWw5PCZ3mYz9sDZdwrJPuxC7kpVPJ3zwk7E15KeMz+WEr0rPJDjOcdw8mRsBo1E9 7u38tU35VvAKd6Cc+bxdxqkFByCtFHgiWoac9a0+4ub0KMcWwKtQDGuT2qGV35RpMg0j pPXu95JUH9SsoIekv7JRrqXvElZfPZSpiVPqsFJxmZ6SnCFGpp2ukyMIeZkiFUdkPW+c yK2D/vrgx3FpBeBQ98F831kyuVdPkDtUwYGMSU0tOKIeAnfUEPpbGzdKBQhnwzcxTjNp 9Reg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=yQdjNd2a; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ubZDRNtrkQkwJrClJLOy40bBQNx9uaLBvdZstS07IAE=; b=YSIF1ZpLiQAa1AHMSUbPsNgKrAP1T/Du0xZJSgfvRvHApnrblf3CO+ea3qyFENuac1 3bzoRok+n6bLfXgQEKmvdKNinsjfxkJACTiNDtH33HXnL6KhoCjqBRLsH45RyrUnOEgZ JRYYRQaZ9cdbv9MYlhDlA0vTEycMiFON1eR0cuiJrrAshgAYtskRoCQ1zUMeIVyvpOJJ stReVEZkFUJXeTrsvMgOqEuRw1wIVIyl9JIqN+Yp9ZKtT2MtA8C4HAuZ7VAhf/x09fq/ q+ZRI+OL4ZpBio3ypPgDkMN0dcCqLzBfFgBzY0vygBHO+AscuC5SJW/kjMAqVNv65afW W6pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject: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=ubZDRNtrkQkwJrClJLOy40bBQNx9uaLBvdZstS07IAE=; b=hSyVGb6b9KaxA43xUOQxhHLHKQukZu2AY5olpC12xI1ulgvaURVnGDpGC/FBMkgZTZ P8jM5tjEeoGGqDxPPOmxjXrNcxktx7lFdDA1xUTgq1vSwROIscSD6jj8LxkeEJWHamUX 7A/u8zfLdAxXoi7h5vwLNo70hcOCKs4u2sKNgIwkUorvdbzQ7b8YgISm1DzcbqWXfKfb qrpzpIKfvv88M8nDYqDnudmotNVtPpY+LJv6KotdRnhPEtfeBjuTVNKezXuaROUZ9COM bAYLOVTYoitftp1RGESMTv0zCKYcGHGu5/iSY08NSyf2tBm3/bAIEb6PpsigJxLvctDa pnvg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora/0+s7YkDoQ1PDkIkax0xAjPhmVECupa589gZhqkjqRYsI0fr6C xh508VzQ33BzFMQqq4rUzkk= X-Google-Smtp-Source: AGRyM1uX5EIPlIkt8bU94CRN6s3OHMBnHQvR9rlW8rx+HkJIOmHDqqlHq2hEvtyaK7KOf6ZQ+YM9cg== X-Received: by 2002:a17:902:d4c3:b0:16a:2dc1:1ce6 with SMTP id o3-20020a170902d4c300b0016a2dc11ce6mr10937638plg.161.1655886284683; Wed, 22 Jun 2022 01:24:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6a00:884:b0:525:23f4:c380 with SMTP id q4-20020a056a00088400b0052523f4c380ls3500801pfj.5.gmail; Wed, 22 Jun 2022 01:24:41 -0700 (PDT) X-Received: by 2002:a63:5262:0:b0:40d:1d1f:2f3d with SMTP id s34-20020a635262000000b0040d1d1f2f3dmr2023260pgl.4.1655886281375; Wed, 22 Jun 2022 01:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655886281; cv=none; d=google.com; s=arc-20160816; b=cGf9DKOOi78PfeazWCitRBJXW3NpjNQu+TSa1XDLsh3f9bzRNfCBU80JP8p6VHVyXU mKo0xvqc58DsFEJNR/V1gD7OAXEg4rL1BBErVwdP9JVdvXTnmWS4/3o8R7wxOBx2kXKz ghzi97+s+VplUAYpI30qf6varayz/sNY1oTOS/mchMtPqXDxlvb+iaJUImzngPQCsin1 8mB0fZsC6nI+47pdDv0Zn+qyXH0AQuaXE3+axtaZ0No++393H4VZxazkOUrFnyrMapxc ue2YYK7ZaYDbpb1Ympf6agJRBH6ZmZYsBQ0/wC81OLwdP+Gp8/G3CDEohpi5f4gRaqyz HFXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=l1AgdnGUPazOaOggF0KJxIU2p0kpcuSsMkfXKz33FU8=; b=g7VasSPbQIYqYSLxMTl4jmcU7JsZ0a3JfymZ2Pcznjzx0+hzqDpD8fXqrTr3LGVSZ9 4ywBvPPVmZu83DbP69WtfVfnkFW61CLuazkCREsU45K5wjejlTMgRSuKJQhY74JEUy9u CGSXwg8WzVJdxxD9ltVeoYI0k0Eej+8OApgwBm2UsAhyMx8zFKyY/BTO8QM7Ca5vOcYH O/cQeLxQeazbUS2CAbu3lU6zqVfk8PsYmv9+5JlVSWwuejEsxZB1rmPoB46W72w88kuz mdQ3mvvhMXMz+2TvYAVkIHlXmeVY5KTCMedGBC9y4PxHJ96qJnDtY1RX2TKTZqs/EJnw VhRg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=yQdjNd2a; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org Original-Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com. [2607:f8b0:4864:20::62c]) by gmr-mx.google.com with ESMTPS id 6-20020a170902c20600b0016a11b71bfbsi443966pll.8.2022.06.22.01.24.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jun 2022 01:24:41 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) client-ip=2607:f8b0:4864:20::62c; Original-Received: by mail-pl1-x62c.google.com with SMTP id o18so7703381plg.2 for ; Wed, 22 Jun 2022 01:24:41 -0700 (PDT) X-Received: by 2002:a17:902:ed8e:b0:16a:147b:9044 with SMTP id e14-20020a170902ed8e00b0016a147b9044mr20110475plj.85.1655886280697; Wed, 22 Jun 2022 01:24:40 -0700 (PDT) In-Reply-To: <0c95c0e6-1558-468b-b224-278d99c31332n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=yQdjNd2a; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::62c as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@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:30786 Archived-At: --0000000000008cccbf05e20511bd Content-Type: text/plain; charset="UTF-8" I'm confused. You seem to have taken a step back (the latest error is saying that the input file doesn't exist). You started with this: *$ pandoc GENIe_scripting_reference.md -o GENIe_scripting_reference.pdf* *YAML parse exception at line 9, column 9: mapping values are not allowed in this context* Starting with the downloaded file, this worked for me: *$ perl -pe 's/^---$/---\n/igs' GENIe_scripting_reference.md >GENIe_scripting_reference.fixed.md $ pandoc GENIe_scripting_reference.fixed.md -o GENIe_scripting_reference.pdf* Note that Albert's suggestion (i.e., ensure that "---" lines are always followed by a blank line) is much better than mine. My suggestion caused problems with unintentional tables (due, I suppose, to "- - -" lines not being followed by blank lines). William On Wed, 22 Jun 2022 at 00:43, almaghfuur lahu wrote: > I forgot i'd better believe i put wrong command. Here'd be the valid one: > > > *$ pandoc -f markdown -t pdf GENIe_scripting_reference.md -o > GENIe_scripting_reference.pdfpandoc: GENIe_scripting_reference.md: > openBinaryFile: does not exist (No such file or directory)* > > as i'm noob in mark up/down file processing, still have no idea how to > solve it > On Tuesday, 21 June 2022 at 22:03:02 UTC+7 William Lupton wrote: > >> Thanks. Is that documented? From a quick scan I didn't see it at >> https://pandoc.org/MANUAL.html#extension-yaml_metadata_block (but maybe >> I missed it). >> >> On Tue, 21 Jun 2022 at 14:54, Albert Krewinkel >> wrote: >> >>> >>> William Lupton writes: >>> >>> > Perhaps there are some heuristics that control whether pandoc decides >>> > that a given block is YAML. Maybe lines like this one are being taken >>> > to be YAML? >>> >>> The heuristic applied by pandoc is "if there's a line containing the >>> string `---`, and if that line is not followed by a blank line, and if >>> there's a closing `---` later in the text, then treat it as a YAML >>> block. >>> >>> So adding a blank line after `---` should fix this as well. >>> >>> >>> -- >>> Albert Krewinkel >>> GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 >>> >>> -- >>> 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/87a6a6nmug.fsf%40zeitkraut.de >>> . >>> >> -- > 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/0c95c0e6-1558-468b-b224-278d99c31332n%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/CAEe_xxgjXZhV3XqOpstoPrsbsEiCidqG72Prx9SnL%3DC1tRAq7Q%40mail.gmail.com. --0000000000008cccbf05e20511bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm confused. You seem to have taken a step back (the = latest error is saying that the input file doesn't exist). You started = with this:

$ pandoc GENIe_sc= ripting_reference.md -o GENIe_scripting_reference.pdf
YAML parse exception at line 9, column 9: mapping val= ues are not allowed in this context

Starting with the downloaded file, this worked for me:

$ perl -pe 's/^---$/---\n/igs' = GENIe_scripting_reference.md >GENIe_scripting_reference.fixed.md
$ pandoc GENIe_scripting_reference.fixed.m= d -o GENIe_scripting_reference.pdf


<= div>Note that Albert's suggestion (i.e., ensure that "---" li= nes are always followed by a blank line) is much better than mine. My sugge= stion caused problems with unintentional tables (due, I suppose, to "-= - -" lines not being followed by blank lines).

William
On Wed, 22 Jun 2022 at 00:43, almaghfuur lahu <budikusasi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I forgot i'd bette= r believe i put wrong command. Here'd be the valid one:

<= div>$ pandoc -f markdown -t pdf=C2=A0 GENIe_scripting_reference.md -o GE= NIe_scripting_reference.pdf
pandoc: GENIe_scripting_reference.md: openBi= naryFile: does not exist (No such file or directory)


= as i'm noob in mark up/down file processing, still have no idea how to = solve it
On Tuesday, 21 June 2022 at 22:03:02 UTC+7 William Lupton wrote:
Than= ks. Is that documented? From a quick scan I didn't see it at=C2=A0https://pandoc.org/MANUAL.html#extension-yaml_m= etadata_block (but maybe I missed it).

= On Tue, 21 Jun 2022 at 14:54, Albert Krewinkel <albe= rt...-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> wrote:

William Lupton <wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> w= rites:

> Perhaps there are some heuristics that control whether pandoc decides<= br> > that a given block is YAML. Maybe lines like this one are being taken<= br> > to be YAML?

The heuristic applied by pandoc is "if there's a line containing t= he
string `---`, and if that line is not followed by a blank line, and if
there's a closing `---` later in the text, then treat it as a YAML
block.

So adding a blank line after `---` should fix this as well.


--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124

--
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 pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.

--
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 pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/0c95c0e6-1558-468b-b224-278d99c= 31332n%40googlegroups.com.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAEe_xxgjXZhV3XqOpstoPrsbsEiCidqG72Prx9= SnL%3DC1tRAq7Q%40mail.gmail.com.
--0000000000008cccbf05e20511bd--