From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23349 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Frederik Hartmann Newsgroups: gmane.text.pandoc Subject: Can't access keys containing spaces in pandoc Date: Mon, 2 Sep 2019 02:10:07 -0700 (PDT) Message-ID: <92055fd0-049b-4943-a51a-2eb0905b59ca@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_254_1835904419.1567415407894" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="119934"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC3JHXELZMMBB4FYWPVQKGQE7FHKG7Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 02 11:10:11 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i4iLj-000V5s-26 for gtp-pandoc-discuss@m.gmane.org; Mon, 02 Sep 2019 11:10:11 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id 71sf8554869otl.5 for ; Mon, 02 Sep 2019 02:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=xttVJM5stnCysSjJpos00oujprvy+KAsfR6csrwHRDI=; b=WASGOVjQ8f9Tg999Fivs5Ywh5PuIj0ygBhFl8e7Xn92Kkr7ichdf8hTc2Njs0PsxYl 2RabEKGrACXShFseOV95JIcJJy+oRAWicRotR9YU5j856URsDm0PTl/kx+BQPKKscP1+ L/q0fJJXLF7y4T8oD97Wo+DIvRTQL6jjUZnspPs6R0Td5dgH1ruiYEfo21iK0nxesj7D YkYquzWaEtiVUBRC6L0UBUqAl6s1GsykGaMxOtMD7MoqXd5ds2lSKLsyNyJE/NGfhl69 w4KwEkP0xfIQzukE0N3zavuqcY24FgWnqEmfzybS74cf8knOq/e/yhA5wRKCK+HuvqTG 4eUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=xttVJM5stnCysSjJpos00oujprvy+KAsfR6csrwHRDI=; b=G0r9jg4wD9Em3IeX3AWdF4K0QA8W7OPT2gD2VAYmDZ8fDR6+N0Cyvk0l3hNIyXVC6A HV1hMEmukRl8SVHwNQzhebYGV0S5CWs5q3yFyt8Ld+MfFVn7a9ZwOPA2n+YqU1f0PGkY 6dx39SCuMe/ndAF9ucimYxDZAu/uO/zA0Wo2YCRp2PAVhSuhraSkT/jSKKxKzCO6flYq eNQ5rRvzuGWnoyzvkoUH3t7ROWilPY3hLglbgNNb1s+2nqiTs1aNZka9iqTjYO25Meq3 Y2AwxNzHtitioTsXV7ck/la9URoqAc9MHHQLsoH/FnH25w1n8LF2zic/LZSVxwK8uc0E tQJQ== 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: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=xttVJM5stnCysSjJpos00oujprvy+KAsfR6csrwHRDI=; b=iPZj12Ass7k9JQJ7HAxmFvHSsNkQ4WEAbJZTR0CNLOWnDD4oEbwH3atWWG3vzVmndm XIJMzHSdHqT7dEdnp35jHuB0TPgm+G6rKXjzXi8LGBsFgwQdehxQEUKnbjMQPrGZAdXh DrHDG+p3w3dzgmg9Y4mN/nsiJxqKAtZy2xqvOIdXWMssSmtI4v7kYrY4oNYOSq23Amhp AfvVkxZlXzESF+wY5tqUkiJ84BAMteJYIC4Cqrpo/KDv4heuakccaVBSUe1rfhAQynPr A9H6zdfo20lxiBNO2M5vQYUBPj2lB1jN+EMBf0GRbTTWiS0q14/waiEbqo33THg2EJOU kLYQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVZr46wXTzx7Ba8ScWiZjYQFTCa9do6uRsEi6682x+I8znmtwV7 gFh79L9VawaeKEmoXwTOusg= X-Google-Smtp-Source: APXvYqzG0Fd3durRLnB11DPNiOYVdNt/fGiusVlIIr2/N4mDoI1MMWZ9yZXSfqtBr2ytJhDEY4AUhQ== X-Received: by 2002:aca:4406:: with SMTP id r6mr7019621oia.175.1567415409468; Mon, 02 Sep 2019 02:10:09 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:d703:: with SMTP id o3ls1181394oig.13.gmail; Mon, 02 Sep 2019 02:10:08 -0700 (PDT) X-Received: by 2002:aca:1104:: with SMTP id 4mr18965585oir.65.1567415408465; Mon, 02 Sep 2019 02:10:08 -0700 (PDT) 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:23349 Archived-At: ------=_Part_254_1835904419.1567415407894 Content-Type: multipart/alternative; boundary="----=_Part_255_260093307.1567415407894" ------=_Part_255_260093307.1567415407894 Content-Type: text/plain; charset="UTF-8" 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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. ------=_Part_255_260093307.1567415407894 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!

We are using rather complicated tem= plates to display certain information about dependencies.
These i= nformation can be exported in yaml files and looks like the following:

---
dependencies
:=C2=A0 external:=C2=A0 =C2=A0 hardware:
=C2=A0 =C2=A0
- Descr= iption: Text here....
=C2=A0 =C2=A0 =C2=A0
Dependency On: Text here....<= br>=C2=A0 =C2=A0 =C2=A0 Date R= equired: Text here....
=C2=A0 =C2=A0 =C2=A0
Dependency Owner: Text here....
=C2=A0 =C2=A0 =C2=A0
Color: Text<= /span> 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<= span style=3D"color: #000;" class=3D"styled-by-prettify"> here....
...
=
This is a perfectly valid and well-formed yaml document.

Now, the best thing would be if I could simply loop o= ver these attributes without having to specify them directly.
The= next best thing would be if I could access them via the usual method:

$for(depende= ncies.external.hardware)$
$if
(dependencies.external.hardware.D= escription= )$<= span style=3D"color: #660;" class=3D"styled-by-prettify">\
textbf{Description:} & $dependencies.external.ha= rdware.Description$<= /span> \\ $endif$
$endfor$
<= /div>


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<= /span>)$
$if
(dependencies.external.hardware.Dependency\ On= )$

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 pand= oc-discuss+unsubscribe-/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.co= m.
------=_Part_255_260093307.1567415407894-- ------=_Part_254_1835904419.1567415407894--