From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33090 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: --defaults issue: "Multiple YAML documents encountered" Date: Wed, 6 Sep 2023 08:22:08 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f40d2a0604aac301" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9226"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBHFV4CTQMGQEBYUJFJI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 06 08:22:26 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f59.google.com ([209.85.216.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qdlvl-00029i-L3 for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 06 Sep 2023 08:22:25 +0200 Original-Received: by mail-pj1-f59.google.com with SMTP id 98e67ed59e1d1-26f533e6ec8sf4422649a91.0 for ; Tue, 05 Sep 2023 23:22:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1693981344; cv=pass; d=google.com; s=arc-20160816; b=NdUWFh+r0tfV2oHq0cQjRkCB6p/CYKyq72eM4/plOX/L6rb3j8YcbCTL38w57VMIFS chaTOhnHd4WmHjAYAwjGrG/NsK+qXppOL1ig/h98a21AEAlp6+FKYdOuy95V8uN62BM3 zHjMCikIKkpGU7xQRer4/qcRtDoYCttQN8Un6mfVFScs5BxqTpSrUs2N3QBOiR32zmoM EXzjFlGgnDD/jhSQsMII8bWO9rMEwg1Qd+LkrnJzcLp0sS65V8jaYmYEcnnJqswZllhh 4lXvFepk7VCBs/HILrqoxyMFAiN9VLewWj2vlAUuQ1aYWVenjkPK6gzsz0Iu8WKRFiA3 qLiw== 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 :dkim-signature; bh=DuU9AL9wfY05b7ngYJtL4mhxLKIJMQzxDDSsliA6btI=; fh=4cPfTtzleA5nPUC1EQtk197aIUeaT1ew1v/oILbLT2I=; b=k5zugzmuZ7Nn/dHiDZX3S68XLu3ecKd/irTAj6PtMSFkkFHTB260IXwV7u+FV4l/ly lrH/cpd956AtniFTCwH0JIwed9rvkhlgyHggMf8sqWcqxehy6dkHBG0Ip+FOzrXUZYNu KdWvaPba74DApUQVKZxuh25ifx3tMF64mGEDD/7AUIsQO9FGevWMmBEWVxVjAs9pzNk+ 2Lv0cM20F8vVItSA0CjwIBxSVy99Tu81hMoBNJh2hrMY/nLWwSPryH/53nUqrBKfV826 Dh46YOHaOL10Ynk6FwXTk6RGnSKGYxmpVqsGzmf+qxhFmTux2UZC2weiP7kVFcecvJLQ I5qQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mQWp+Wb+; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b33 as permitted sender) smtp.mailfrom=melroch-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=20230601; t=1693981344; x=1694586144; darn=m.gmane-mx.org; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=DuU9AL9wfY05b7ngYJtL4mhxLKIJMQzxDDSsliA6btI=; b=AECt51GvwmdjT3gx/ojqPxkgXoViOCPc9h5F5V/UAJ5jbUJ8pd8JaAhog1sOXAoRN5 SJ+ksh8I43ClY+Kd04MDj7CudtgFJPFLfs+X9n7P/b5f3R1YU3zTtufmdRHeMSP9xTis RV3hRbAhz7Th1aQbboI6eNDaR6xNfHChwr+//a9QG4KqWXjtbx+awjRsKEVnNAcq/P5d s/T4Hl8FcmjaNFeLQFDOsdzWUuRsukDahBISGLD8kMBXvDik69UGvRAOboOoLga4mat3 ZniihM3KCB7sQFIRs1EqibQtz/CtYvJUUeEvLLyXnnly5OoaC5WP DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693981344; x=1694586144; darn=m.gmane-mx.org; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=DuU9AL9wfY05b7ngYJtL4mhxLKIJMQzxDDSsliA6btI=; b=NDSmEquPVr5TEWqbN5uR2UO/aPfoEiMOY3dv/44tBRqHV+0d3d/80VCEYBhVVfOYaS V1kLHX9pnmwLXS8AbCtb+BQ6787HN9As6sNSkcQejYhruorY7cw3hf+QrjtZtLtulEPU PnUomsTKUsjq/c6dfwzH404CZXPTbjNws+aB33VR3cO4UIAjY1n/SVazGq9wTvLn+zv9 5VRhLcu5QNe5vzdS4SPNxD3G0UAHpgH4pseFNiz6F7lMe2+C85j7y0jhm3nOyWRdqr4i up+yjyEa83+KXzt7CtQ6tFZd2UYWe3L1ZF4ziyU8dF7RMtz2oGNpaCFNxZW1jLgby2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693981344; x=1694586144; 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:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=DuU9AL9wfY05b7ngYJtL4mhxLKIJMQzxDDSsliA6btI=; b=UFGRjLGtqAM4paLyyVaI9cC+bZ+wSXMQ5Gu/XHK5wjCmj9q9WnAuMXdu8eI1maWFKr U4kK8DznJxemP683woI3OZx+thzlCefk258JIuN6SGcALqm6/YkApkHnkobqZ7QKFvQ1 MK/VA/+xfbt460PX5LSxdHRJH+W462FIC8blx0HSHjztdXnq8lREEsbMR6kFA8sVAt42 m02rPirtOVvQLd6bYPZxqAPeg1eIEL/OPhrYDXn6OFVM/s1I6lYYSOvXS/iGUNJMQbVe 385MMA Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0YyCJEcop/xGfaQEfmMYdRXi26wuFkWLqyJNowGcn4xMPdXFIO8s c+MjqdhZ3nTQ1n2SM3SyoNw= X-Google-Smtp-Source: AGHT+IEu+iZFSr+MkC3zLXVTIDRI4RSeIT2b3lYNNLuT/4vf4aO56HgWA7QPnJh0Xz70J6w58IvK6w== X-Received: by 2002:a17:90a:c095:b0:26b:c5b:bb44 with SMTP id o21-20020a17090ac09500b0026b0c5bbb44mr14002165pjs.13.1693981344064; Tue, 05 Sep 2023 23:22:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:90b:3c0f:b0:273:551a:67c0 with SMTP id pb15-20020a17090b3c0f00b00273551a67c0ls4249432pjb.2.-pod-prod-06-us; Tue, 05 Sep 2023 23:22:20 -0700 (PDT) X-Received: by 2002:a17:90b:1e4e:b0:268:46fb:df32 with SMTP id pi14-20020a17090b1e4e00b0026846fbdf32mr14045135pjb.34.1693981339837; Tue, 05 Sep 2023 23:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693981339; cv=none; d=google.com; s=arc-20160816; b=g9NBNTpG1ucDHn7fNGdpJDddQTncNcL7rUJU7sl17ug2XxFNQsk/tYEE2Q40GTv0Kg UxAJ9cXaWI21kwbEptlmL5/Nd/Vsyy9tmC77wnej4DhJiAxtIEoy/orNf8mBJ45Oywcp FPygLmYWUip/esTruEcFtzn9SsW6QCh3xP9WcFdWhVE/syLi2VJ+akFlAvDaJCgpFMMR 3JODUbjgQiJv0IaYSbS2zxpJjB5/wVmuAZ/m4FIky473KJmacOxFqUQMUz84WEvvSQ1H CBmhAEX+I25cvOoL9gG8hl5OlmoTpsl68wNtrJUmtzsCtniyahsGeTeTMBxp/cb2nJ1v rsoA== 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=w3sY1E7ErhDzJ/VQaYla6JcRUhwQEbh/wwq6uYIpAhY=; fh=4cPfTtzleA5nPUC1EQtk197aIUeaT1ew1v/oILbLT2I=; b=ih5/uvArX7Zzjh3Iqqk0Z8wEkLAu/n1SQmUyzoY5ePbCcgIrsh6dg+DOVjZ+IWg5fj tehFXLyRy17KPXwXIcYQh8v7hVRnMhy+ABvi8oGLr3l7qtz1Rv4Wmfti1A5Opchzup+E r7UlGCr+XUfj/Sg2WUkCXpgqYCpZeqJdS0RcB0nxV6NcmUyZrhFg3bqjMNxQ9jXU/rI+ 8CZ7GGj03yVibxQCX9JCnYnKTmB28A0jzNAzykR+9Jz0n3uF6jAT8+7H9xGFOU20Z6pe gPAWg8fciffnJogVgFLqW7AfkTc8h0Vh1u42gWapL1l/HRor7qqMavdt+qRv2yGiuoU0 l36g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mQWp+Wb+; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b33 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com. [2607:f8b0:4864:20::b33]) by gmr-mx.google.com with ESMTPS id n6-20020a17090a9f0600b0026b48d26530si1112507pjp.3.2023.09.05.23.22.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Sep 2023 23:22:19 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b33 as permitted sender) client-ip=2607:f8b0:4864:20::b33; Original-Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-d7225259f52so2847138276.0 for ; Tue, 05 Sep 2023 23:22:19 -0700 (PDT) X-Received: by 2002:a05:6902:120e:b0:d78:134:9477 with SMTP id s14-20020a056902120e00b00d7801349477mr18044907ybu.58.1693981338765; Tue, 05 Sep 2023 23:22:18 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=mQWp+Wb+; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b33 as permitted sender) smtp.mailfrom=melroch-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:33090 Archived-At: --000000000000f40d2a0604aac301 Content-Type: text/plain; charset="UTF-8" Den tis 5 sep. 2023 23:29Bastien DUMONT skrev: > > The yaml used to reproduce the error is absolutely > > minimal (just two lines with three dashes each will reproduce the > error). > > It doesn't happen to me when I end the file with three points instead of > three dashes. > Three dots is the correct way to end a YAML stream, variations permitted by Pandoc metadata blocks and other tools notwithstanding. Three dashes signal the *start* of a YAML document within a stream, so if you "end" the file with three dashes some parsers will (correctly) see that as the start of a second, empty document, and may discard all but the last document in the stream and ergo you get an empty or invalid value. I believe that correctly they ought to discard all but the *first* document (I have no time to look it up in the spec), but there you have it. > -- > 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/ZPedbTNoS6KKoG2l%40localhost > . > -- 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/CADAJKhCnJ9fDf%2BHdxysDDW%3DmvPjQtCCOtYnujYypo8AJXmTPaw%40mail.gmail.com. --000000000000f40d2a0604aac301 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Den tis 5 sep. 2023 23:29Bastien DUMONT <bas= tien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> skrev:
> The yaml used to reproduce the error is absolutely
> minimal (just two lines with three dashes each will reproduce the erro= r).=C2=A0

It doesn't happen to me when I end the file with three points instead o= f three dashes.

Three dots is the correct way to end a YAML stream, variatio= ns permitted by Pandoc metadata blocks and other tools notwithstanding. Thr= ee dashes signal the *start* of a YAML document within a stream, so if you = "end" the file with three dashes some parsers will (correctly) se= e that as the start of a second, empty document, and may discard all but th= e last document in the stream and ergo you get an empty or invalid value. I= believe that correctly they ought to discard all but the *first* document = (I have no time to look it up in the spec), but there you have it.



--
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@go= oglegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/p= andoc-discuss/ZPedbTNoS6KKoG2l%40localhost.

--
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://gro= ups.google.com/d/msgid/pandoc-discuss/CADAJKhCnJ9fDf%2BHdxysDDW%3DmvPjQtCCO= tYnujYypo8AJXmTPaw%40mail.gmail.com.
--000000000000f40d2a0604aac301--