From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23351 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Frederik Hartmann Newsgroups: gmane.text.pandoc Subject: Re: Can't access keys containing spaces in pandoc Date: Mon, 2 Sep 2019 03:32:55 -0700 (PDT) Message-ID: <68fbd484-0729-4ee2-a7a2-0846cd0bbd28@googlegroups.com> References: <92055fd0-049b-4943-a51a-2eb0905b59ca@googlegroups.com> <5E6256F2-6354-43F9-9A49-2328471A9D2B@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1552_480796552.1567420375701" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="211687"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC3JHXELZMMBBWG7WPVQKGQEAIO5IBY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 02 12:33:00 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i4jdq-000sqy-Mw for gtp-pandoc-discuss@m.gmane.org; Mon, 02 Sep 2019 12:32:58 +0200 Original-Received: by mail-ot1-f62.google.com with SMTP id g1sf8646155otr.10 for ; Mon, 02 Sep 2019 03:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=1k03Xr6i1ZU68tdzxKSQi36Qzd2Y+Kl7jx066VltF0w=; b=UHdLEycmeqSdQmkECgcrhU06Nh77OXMfrzk90mWlNNhSa+EVt40McVnQuF0B0a81FR vYxgCuvdmRtxFPJpEsJoQ7yMYURda8UZH40alf7VSSABLxYa5d+HkLY4q2HHcTSRZVm8 bbAkjHI8qfGLsmv61Y/UJvm11yblTXMZs2yZNe+jbA4tr+VaH3DuvW3dSO/N2CrkRRUu ipFo5BMUnDhIU+b3TjddvbBAP1rq0tTbRtJUngnAwDt/o4EPjA/tk/GVUygOCJubetq4 8barN/u/Nk47fuZ+QkRHBrEzIC+cisjnFOl/fL1wh3ZBSy96Xylqe5thIvohjpBi6XCC dd0g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=1k03Xr6i1ZU68tdzxKSQi36Qzd2Y+Kl7jx066VltF0w=; b=fOZcOo0UwKH17qdhb0WkKrxuTioNmrzSFMQnn4ANhEJAImPtI5XnSwkclqiNFhzQ2C 41Bj0Hg8hsmAsX92QZUC5jcZom93h5yfS4ALAtucSGCua/PJyQRosMy5dgm+wb43dmzR WrawKWs9cVwDb2Tvn2AlxRsQi0hmsaABTfHXBhQpZuXb3eCmBDt8bwQe9hnSnBxeEcnU jxMRElLm7/lMpDufHY2Eg4wl+fWZwk8QIacp2+3KYqJ5sbMGjHek99Y33VSVbh0W2j15 jf84BnLFpKp00flWu8lFhXsx/uNwiWT31emElQRi4KrLOPy91P2Nw603f2qOoMMPHbX8 2dTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=1k03Xr6i1ZU68tdzxKSQi36Qzd2Y+Kl7jx066VltF0w=; b=I8EOcEVYVkA1T44e1bPf7UMCmEX3KfEFbtSAjX69gopKCK+SEBDdmTIo934ZhttEHn 7xwdbcyHZG3fIVYEyojJgQ32cRO39G4rDSVWIb1V4+TCpNApP/e4jwToq37nmq+uLSrt tYxNLKRV5EQ2RkCdTva8Y8tCNvtiz22OKwxoY4wNEtVbkTJhCbmzuTaejJ0oYgITVkq6 D4pzseaMyG7bFgueGwJPP+sM0zmUtyTKAqen57SVAxu6Mpt9cdVSxBmFNu+SP+b/SHEc GDCQwrV7VjZ1ANxGsaLtweLyUqMTHPaGwCep6u2uEYzdEgEQEXZ/vPvD3PiXxZSUUpbR lWhA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAV/WQahsloCeWoBL/7EYel1kSJyVF6kbqcd4bgJQGyc8YgwY4zw OMuA4AaN5n2kHOf+tLKhm4o= X-Google-Smtp-Source: APXvYqyDgZ5I10s9YKvlD9NZxI+b9pErY7LJez2uJ5WdOAUObdoqcb3m/nRQuDAXTRTwDtCH6wpl8A== X-Received: by 2002:a05:6830:20d2:: with SMTP id z18mr4552207otq.181.1567420377438; Mon, 02 Sep 2019 03:32:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:961:: with SMTP id 88ls1605713otp.8.gmail; Mon, 02 Sep 2019 03:32:56 -0700 (PDT) X-Received: by 2002:a9d:da4:: with SMTP id 33mr23729700ots.288.1567420376432; Mon, 02 Sep 2019 03:32:56 -0700 (PDT) In-Reply-To: <5E6256F2-6354-43F9-9A49-2328471A9D2B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: hecknar-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.org gmane.text.pandoc:23351 Archived-At: ------=_Part_1552_480796552.1567420375701 Content-Type: multipart/alternative; boundary="----=_Part_1553_1242214420.1567420375701" ------=_Part_1553_1242214420.1567420375701 Content-Type: text/plain; charset="UTF-8" Yes, I tried this as well. $if(dependencies.external.hardware."Dependency On")$\textbf{Dependency:} & $dependencies.external.hardware.dependency$ \\ $endif$ Causes the following error: unexpected "\"" expecting letter In comparison, an unquoted regular blank causes this error: unexpected " " expecting "." or ")$" Am Montag, 2. September 2019 11:37:45 UTC+2 schrieb James: > > Hi > > Have you tried enclosing the content containing spaces within quotation > marks? > > Sent from my iPhone > > On 2 Sep 2019, at 10:10, Frederik Hartmann > > wrote: > > Hi! > > We are using rather complicated templates to display certain information > about dependencies. > These information can be exported in yaml files and looks like the > following: > > --- > dependencies: > external: > hardware: > - Description: Text here.... > Dependency On: Text here.... > Date Required: Text here.... > Dependency Owner: Text here.... > Color: Text here.... > Status: Text here.... > Last Updated: Text here.... > State: Text here.... > ... > > This is a perfectly valid and well-formed yaml document. > > Now, the best thing would be if I could simply loop over these attributes > without having to specify them directly. > The next best thing would be if I could access them via the usual method: > > $for(dependencies.external.hardware)$ > $if(dependencies.external.hardware.Description)$\textbf{Description:} & > $dependencies.external.hardware.Description$ \\ $endif$ > $endfor$ > > > The issue are with the keys that contain spaces. I can't find a way to > access them at all. > > I tried it the following ways: > $if(dependencies.external.hardware.Dependency On)$ > $if(dependencies.external.hardware.Dependency\ On)$ > > Any suggestion? > > -- > 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-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/92055fd0-049b-4943-a51a-2eb0905b59ca%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/68fbd484-0729-4ee2-a7a2-0846cd0bbd28%40googlegroups.com. ------=_Part_1553_1242214420.1567420375701 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, I tried this as well.

$if(dependencies.external.hard= ware."Dependency On")$\textbf{Dependency:} & $dependencies.ex= ternal.hardware.dependency$ \\ $endif$
<= br>
Causes the following error:

unexpected "\""
expecting letter

In compa= rison, an unquoted regular blank causes this error:

unexpected " "
expecting "." or ")$"





Am Montag, 2. September 201= 9 11:37:45 UTC+2 schrieb James:
Hi

Have you tried enclosing the content cont= aining spaces within quotation marks?

Sent from my iPhone

On 2 Sep 2019, at 10:10,= Frederik Hartmann <hec...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi!

We a= re using rather complicated templates to display certain information about = dependencies.
These information can be exported in yaml files and= looks like the following:

---
dependencies
:
=C2=A0 external= :
=C2=A0 =C2=A0 hardware
:
=C2=A0 =C2=A0 - = Description: Text here....
=C2=A0 =C2=A0 =C2=A0
Dependency On: Text here....
=C2=A0 =C2=A0 =C2=A0
Date = Required: Text= here....
=C2=A0 =C2=A0 =C2=A0
Dependency Owner: Text here<= span style=3D"color:#660">....
=C2=A0 = =C2=A0 =C2=A0
Color: Text here....
=C2=A0 =C2=A0 =C2=A0 Status: Text here....
=C2=A0 =C2=A0 =C2=A0
Last Updated: Text here....
=C2=A0 =C2=A0 =C2=A0
State: Text = here....
...
This is a perfectly valid and well-formed yaml document.
=

Now, the best thing would be if I could simply loop ove= r these attributes without having to specify them directly.
The n= ext best thing would be if I could access them via the usual method:
<= div>
$for(dependencies.external.hardware)$
$if
(<= /span>dependencies.external.hardware.Description)$\textbf{Description:} & $dependencies.external<= /span>.hardwar= e.= Description$ \\ $endif$
$endfor$
=


The issue are with the keys= that contain spaces. I can't find a way to access them at all.

I tried it the following ways:
$if(dependencies.external= .hardware= .Depend= ency On= )$
$= if
(depe= ndencies.external.hardware.Dependency\ On)$
<= div>
Any suggestion?

--
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-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pand= oc-discuss/92055fd0-049b-4943-a51a-2eb0905b59ca%40googlegroups.co= m.

--
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/68fbd484-0729-4ee2-a7a2-0846cd0bbd28%40googlegroups.co= m.
------=_Part_1553_1242214420.1567420375701-- ------=_Part_1552_480796552.1567420375701--