From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30787 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:50:19 +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="000000000000eebf4a05e2056dad" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37788"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBV5PZOKQMGQERYTW56I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 22 10:50:36 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f184.google.com ([209.85.214.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o3w4J-0009gl-QC for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 22 Jun 2022 10:50:35 +0200 Original-Received: by mail-pl1-f184.google.com with SMTP id m17-20020a170902d19100b0016a0e65a433sf7065671plb.8 for ; Wed, 22 Jun 2022 01:50:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1655887834; cv=pass; d=google.com; s=arc-20160816; b=lSB/ebKWWfegkXX8nMKdDqsXoPGIE45UzbmeSFFbT102byEKcXojQ6KERx2gt+Him8 VuHZ2Nh2i/ZkHGV3MzwD0vsz9nauGjQdN9XSIo4wuXzMbT3WGINYZK8TW0FAI70qg4+b m+ufs4dulPMgt5ryoyQS2fnekJvMgRueO9Sk9VIKxGB6PPJ4SRDZxK4VaxVO1iCIhUiD Zg3AqFVPRwDY5LMUV20r0sxaB4JRnjMneYlg6dzEMBGMAg7WAMqelngkq6stN/62GgQt 4d8Raqt1OvaZTvepZMF3CsZJJPnU6hgcjw0uh7ZH28QMiWHBDtmGY/zq4p3T+TLWA5Jq telg== 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=II6LZPPqVJJ7phbhUQin7gvNnTCaN1bqrSePDVDlBYU=; b=IKuamqUZa4uV1jaRn8/vsI4VDzL1TFXyq/jLVA46Wa8LDjcI05UbpqwDnWpcdUMvHS fp3Skn/khmDCHNqo9kexl6fjC/OZ2FgvgjC4EOagD9e2mYXEUza9EExmHYjKQ/GZmAjs CiP1LO45muYCTac4W1QuLTWi/SFQJ/U9PqakkscFelIw+E1eCIbF1B0weX4aTx4FlOQ+ Jlr1ilnO7fvnvLOnuhRtwfMBuT8c2rE86f5I5pMpAFsDbUsAxKQlBHw9aKheexmhy9OC qUS5n+aiIu/6r1WWV+2LT35dxusUQvBYwX2D4e5YZEZxczdbHj+Ff5mV9Z0wHXySS1Dv oCIw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=CqVNX+jL; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::529 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=II6LZPPqVJJ7phbhUQin7gvNnTCaN1bqrSePDVDlBYU=; b=kCgBG5AnE4CEja4QAhPNTJB7ApWNUAQuuKkQfPz43dGN1Lj44Rod2Kh1+UsrxsGsIN xQdolBYmDk/bc2gACdcgiikebbiBD2Tdagm3ozIcT/i8MW8cfs9dwwR+x/+/70JbohRK 0p1BGGIV3CXlSwR3xyKF1ar8uwc6MFE43DRXOS2tMJiFUbdiA2r5LTi1SDuSg/xS4T6O J3bhvOQIeu6tXSx4Vx2z3lRprsG8cTD6X52d/AnvY1/73+NNSlToqtOG7lGkT2kgknOu ITlffW9zMzbLEWcuQgvPqVQffKT6uWUXDajcEr37Z5toVOYUmm/m+exYzgUKbm9VcDQy tUyw== 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=II6LZPPqVJJ7phbhUQin7gvNnTCaN1bqrSePDVDlBYU=; b=tiUQG965HixQiqHkqGDZeTv4/VqMa3UekGdPCDM0defCd3dpRrRrh54miRZAaqz5Dd l13GHlVzaAVn4l+LZO//0b9hDus7wC/DkwYIYHZC6fO1R1Vz116VA80ucA4E5OJgyxvc PAXuQzSJmFpoUAyC3D7wiA1vI05KW9ma3BfAkKKqQcL2UrRB8vtPyEmPJNsQAyO7JMd2 Go3mhrBw1WrEgtpVXuSUCX9qe7N/SQrhk5fyauswRmWS2DHKJq3hKm5omrXVCnyEKBZc RSF5JVo4saEYPgYre3PakVANl/zM1kzjm/a8m9EYkpS82FTQmzoYRwSjJb6WKXFTzDvf zwKA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora8KBv0g4i2yvKeSfe05Zb/dqBOwJx2HqEgEzLFpE50UgpbPpVnE oRVC6uA8Kt59NnvcGFcKY+A= X-Google-Smtp-Source: AGRyM1uglcWNuWrUP0dy8SM3jPWAFg61sdojdE/cWUw8d6Ldw5+y3B/es8Z3xp4NN4l05D+j84G+Jw== X-Received: by 2002:a63:5304:0:b0:3fb:92eb:8e90 with SMTP id h4-20020a635304000000b003fb92eb8e90mr2093971pgb.36.1655887834290; Wed, 22 Jun 2022 01:50:34 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:f68f:b0:16a:e9d:c4b4 with SMTP id l15-20020a170902f68f00b0016a0e9dc4b4ls7954710plg.7.gmail; Wed, 22 Jun 2022 01:50:31 -0700 (PDT) X-Received: by 2002:a17:90a:1d0:b0:1ec:7066:49b8 with SMTP id 16-20020a17090a01d000b001ec706649b8mr2593387pjd.163.1655887831201; Wed, 22 Jun 2022 01:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655887831; cv=none; d=google.com; s=arc-20160816; b=BFuibg/OgEaXTD6wfYd8dLWBpTAJULIq8gaQ+gpkI6fehkT/fQWkG8T+2T2YfZoF/p 3PvDm1CX+hSm4SXEnx3GkSGfaElkP4TezHRUBefBWysQ1IhLTXK76BoEpdK0QiJO+iLM +vYJQzRwN/idB1I8XoYHETMwNd2tYbC2HHUFCwX6JbupF+R+Ci9wwLRc40zy/9Z4y6+6 wQO5Af46xsMx7VuXpsyjXw3K59DoJZM5KJsy9EFfDX6Hga7rrMW00fNU9M9yHRhNbXp9 OtAL2dUi9/FBBwtaZyOv1bii4MLcJ4B7pBvf4twRNomZxeN/L4tUPyrNyJQYWk3w8Jcf fv9Q== 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=yxtVzZNvOhWvSJXG8m/fiCCrs1ULaQEY8TFNkIEwZnk=; b=wCmoYKPsO7/nOaTVy2VCjRk1sipEwRQfEp22185P/wkMGGydsK6Uf5XlsGNiOckmP9 wt8tBfZI8a8VJhVlLfPcjyGLAOyCRiOz/QzWeLhcEJCi+qmH3CpFfwFMLgZrsmxI5m3X PoqQKPHGNQ14IF+9VoIeDW6ZD5+joBRKW4U7keK1DajWmH0MlU0PWh2COJJUSU20TnV7 yGqJplePlEt7XrhbXuRoU7evZMTvKXqyELsjEfPUG52FPozE2nmT0doiv5IjGDzv34d8 naSBm9YNNtmYs6BK0iPmjMKT5LUPWn3JlpeQwSgts3SHIiPptAY4RTzNp1ugaOeUaJ3x jUEg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum-org.20210112.gappssmtp.com header.s=20210112 header.b=CqVNX+jL; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org Original-Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com. [2607:f8b0:4864:20::529]) by gmr-mx.google.com with ESMTPS id a14-20020a170902ecce00b0016a466a4b1fsi61361plh.2.2022.06.22.01.50.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jun 2022 01:50:31 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::529 as permitted sender) client-ip=2607:f8b0:4864:20::529; Original-Received: by mail-pg1-x529.google.com with SMTP id q140so15502770pgq.6 for ; Wed, 22 Jun 2022 01:50:31 -0700 (PDT) X-Received: by 2002:a05:6a00:114c:b0:518:c064:d47 with SMTP id b12-20020a056a00114c00b00518c0640d47mr33780750pfm.27.1655887830622; Wed, 22 Jun 2022 01:50:30 -0700 (PDT) In-Reply-To: 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=CqVNX+jL; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::529 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:30787 Archived-At: --000000000000eebf4a05e2056dad Content-Type: text/plain; charset="UTF-8" I created https://github.com/jgm/pandoc/issues/8140 with some suggestions for documentation improvements. On Wed, 22 Jun 2022 at 09:24, William Lupton wrote: > 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_xxjFnjwXaRVdm41TOxQqg8C8xpFR%2B376pWaUFCuo5wBwLg%40mail.gmail.com. --000000000000eebf4a05e2056dad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I created=C2=A0https://github.com/jgm/pandoc/issues/8140 with some suggesti= ons for documentation improvements.

On Wed, 22 Jun 2022 at 09:24, William Lu= pton <wlupton@broadband-f= orum.org> wrote:
I'm confused. You seem to have taken a step ba= ck (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.pdfYAML parse exception at line 9, column 9: map= ping values are not allowed in this context

=
Starting with the downloaded file, this worked for me:

$ perl -pe 's/^---$/---\n/i= gs' GENIe_scripting_reference.md >GENIe_scripting_reference.fixed.md
$ pandoc
GENIe_scripting_reference.fixed.md -o GENIe_scripting_refer= ence.pdf


Note that Albert's sug= gestion (i.e., ensure that "---" lines are always followed by a b= lank line) is much better than mine. My suggestion caused problems with uni= ntentional tables (due, I suppose, to "- - -" lines not being fol= lowed by blank lines).

William

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

$ pando= c -f markdown -t pdf=C2=A0 GENIe_scripting_reference.md -o GENIe_scripting_= reference.pdf
pandoc: GENIe_scripting_reference.md: openBinaryFile: does= not exist (No such file or directory)


as i'm noo= b in mark up/down file processing, still have no idea how to solve it
=
On Tuesda= y, 21 June 2022 at 22:03:02 UTC+7 William Lupton wrote:
Thanks. Is that do= cumented? From a quick scan I didn't see it at=C2=A0https://pandoc.org/MANUAL.html#extension-yaml_metadata_block<= /a> (but maybe I missed it).


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_xxjFnjwXaRVdm41TOxQqg8C8xpFR%2B376= pWaUFCuo5wBwLg%40mail.gmail.com.
--000000000000eebf4a05e2056dad--