From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23350 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: James Newsgroups: gmane.text.pandoc Subject: Re: Can't access keys containing spaces in pandoc Date: Mon, 2 Sep 2019 10:37:40 +0100 Message-ID: <5E6256F2-6354-43F9-9A49-2328471A9D2B@gmail.com> References: <92055fd0-049b-4943-a51a-2eb0905b59ca@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (1.0) Content-Type: multipart/alternative; boundary=Apple-Mail-42ABEB46-16A1-49B9-A341-B97DF3947317 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="243611"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCI47TN25MOBB2GFWPVQKGQEJLYMD4A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 02 11:37:45 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-wr1-f62.google.com ([209.85.221.62]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i4imP-0011FS-7b for gtp-pandoc-discuss@m.gmane.org; Mon, 02 Sep 2019 11:37:45 +0200 Original-Received: by mail-wr1-f62.google.com with SMTP id f18sf7751524wro.19 for ; Mon, 02 Sep 2019 02:37:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567417064; cv=pass; d=google.com; s=arc-20160816; b=NhZYRu28fn3pvDDOlRuM1EjUktfY+Gw8++NY1dzEAJk2aoWAAdfVAIeP06hMJST7BK NrwLiRgiPGNj0PyiLpuEkoBYgZ3nKrT26MzvKkcixBlgM0Q5ymiiQCYxxjhVemEm9pKS 6Dw6ZB4NaeCaRLB79KVuD1Tdjeb1yVCV2U04+I92+VmTW1fHznr6nTpuNS1jBLufTqPR bErYt0zHdyMMjG/9coChumOPSq0g+lb97I/PwtY1/BqPq1fPw1SXNO/a5NOMijSdExnY N/d+rZ9jwW7fsvnyqZUGC9proiO4yskMnkoLLrAHRezAbVPCjvHdkkIZS7ujZPA0xpGE MU8w== 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:in-reply-to:references :message-id:subject:date:mime-version:content-transfer-encoding:from :sender:dkim-signature:dkim-signature; bh=TTgEA1QRWLXc/OVlG1MLPZqUNBjK13KU5qygjBPNbgo=; b=R6v9tPx/JoDUn/dWplpsSy80z23yi4xD0zQk/XyNDvvkn6X54jeH5ltyuC9MlQUmHe tNks8O6zC6tMD84eedfr8B58tyzROIdxR0KRI3+0gjkbCI2UzW0Ya+I0RVfCi+eBDL/1 go3inHCnIR8hMaxpx71VFp/2AWEswJdZHzwdqJfXtfSe6WLw09K9iLEzNQGJ+AjbqXdm KVvYSbMVaOcuoaOd0JNH82ggxDAZPkOZtHemzyYr36L6z+S9c6NpoUVyu341MqV3/mEF 53GFXsTJTF16BbIFzjBL1vxrhVEf9/+xnnWocFasBjf/MGnc2MdBRSD8Oi1UmfRhQNOl qSyg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BzM1sqcW; spf=pass (google.com: domain of james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=james.londonsw15-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=20161025; h=sender:from:content-transfer-encoding:mime-version:date:subject :message-id:references:in-reply-to: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=TTgEA1QRWLXc/OVlG1MLPZqUNBjK13KU5qygjBPNbgo=; b=TV0yCy+nifOpVY3iUEobHN50LkoP3JYVvV6+bCTd7qRxRVutPB18+nQwEgnClZu9Yc WUj74kil+J8gszWTkBJgtG8gs2GjjAc5DtPvn2O4lILzVgSgBTnc3K7YzRTKO/CBbCua /OhktuQxuLR5ejRs95PSgX/n7P9hC8XlQ3BSy7EsGA0iX28nYe623Zo2vyzh9gUsVxYH t4R8p2R4OeIjgrCJKsrry1LGBOgGT6wHJ9HSL534knWXSMcUFcIZGkxovnJJNOvFnVVa /iIq+RRRyMVoDquj75YcoqTpprJIOw2Y4qH+V+PUOA1kQYqvyxfkWGScO1wnyGCr7SrK TiBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to: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=TTgEA1QRWLXc/OVlG1MLPZqUNBjK13KU5qygjBPNbgo=; b=GX+Wpnks1VPJyIpxioAjI1u+xZtNC8ru/UpFtz5YYIWe3YQKvqSNfh6PddO7Ni/CP7 zBLIWcv//CWvjdaZmFq1nneiLaUSONzbiPkM2iRdE4sB1P2LKbJ2aGmAS+SeRvaznRPa 1KkH07D29gs9JXJ2lfgbh9vwURl4uEJvrdFwQvc5BfBAi3gICFNUkvhoYeGhR48GTtwo Br1vPN0tO4mje17tY9k+1wJqb2KIAOClxwar4WKSxI0ghoxCruwGtXWI6gjIUB+iWy+a heyoKyNAZyg4C01BZPqySap4K/8iSvTvX1fBd/GJXBRADZpDCZ3IKWlBINmuKV8MXKIy J/ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:content-transfer-encoding :mime-version:date:subject:message-id:references:in-reply-to: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=TTgEA1QRWLXc/OVlG1MLPZqUNBjK13KU5qygjBPNbgo=; b=l/vXNZYSeIWF1TxSPBs5WQGj28V+DqsIpg0xqSIq0PFBLeCy4il9KcYOZFVB6SChVt Y5OlRlqPX0Zx4SC9OhPHXxy8bvC484BdOW0ji0Iu7LCf87PczfRfuH0h5k1zVMhkkxGz 5dC/711hiwF/ScAkmAZv5fZa6KVFQKr0B3IItJttijSCJ227n151iEyNkqUFG09C9+V2 0wVv5Z+T+L0CzFgrGQlzqBkkFxT8vIV8621Vde68/73t3LylFw2/cpN0pHHSLa+XjOeb dd9YJ3Q7zusJGkOi3bGTA7HNDHB4a19SIMwfqKDJTDJHND3w3grAXh5DRvbZ6ubEb3TZ Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXj+xL832u0Gp6q5kiFNdB9/hSUwwZGhiQhLWVhHj597FUKr/OE bUwa+NTv4fUyG+bUTU4YFQY= X-Google-Smtp-Source: APXvYqxHcMD+jcrGYTwkLWt60FRRQSRCrKcGtoph0EJj3alD8NYPxWN2UySjaTHfg5qdqW6eh9G7Fg== X-Received: by 2002:a05:600c:259:: with SMTP id 25mr2608651wmj.158.1567417064636; Mon, 02 Sep 2019 02:37:44 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:7506:: with SMTP id o6ls1833360wmc.4.gmail; Mon, 02 Sep 2019 02:37:43 -0700 (PDT) X-Received: by 2002:a1c:c5c3:: with SMTP id v186mr20876256wmf.66.1567417063531; Mon, 02 Sep 2019 02:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567417063; cv=none; d=google.com; s=arc-20160816; b=rh2sEjd48wWcfBwKkJQ/A3sV5sspbdci801a33KuZAvS6WjAb0rloj0KO0poPrRy9a U2k7SMkzUMtUFp20mhfEA+ucN/UUtCLWsTJL48pH4SRGRjG/YzbMwx1/jHDKr0nHDfN8 Iq+5ap3zVFUIVC6gXs6g09n/yU58LRRMQICnfmI5vaFwxHYsFfIv57WcPOh3hn0dWFcj 6rigvTINgtUtcbS2WEGqGLGEtpE9MyAa2cpu6FGJE1UyzECz1l1YcaRDRu4VFOcDfg+e a6lGYrcdAwqLuXrCCnBDylZLUtSpRcxutB7U+wwTGT+vvNNG42ctGN8HK5ASntujawPv WT9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:in-reply-to:references:message-id:subject:date:mime-version :content-transfer-encoding:from:dkim-signature; bh=HrOxTEA2YvgHJiKwy6+FGNCP0DusdBrbKOYEhMRsgBA=; b=frD9YUVwHqMSqNM6B1WU0cEYQAyKuVTs0tblHzkZqhWp7QTIYqH+oKPzoQkyl+LS78 bRRbhnJMkJgGuFEFYvOBSnlr+igmMhpJYvK07G2dKrIv/1HFABIHzNf0WqgzDC8au+GA CaOEpB8wQ/esZUNJx0nRofMmK4fGzuu3AhHhhmFr3FibkPLGIqsH0hXxqgVj29mYjtee bnBGL6F+ybkvxznlIOtG0HTj6kfLlidDbhx0onhjs/C+YInK0gNJI2H/d/HO90vyWLD6 Zr1AjQQe1jJQWxisMw4U+aVVll0KvDf0XoWUfVbrSHuLslK9HJlT8gHckNnRsVzmzaiv awVQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BzM1sqcW; spf=pass (google.com: domain of james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com. [2a00:1450:4864:20::32d]) by gmr-mx.google.com with ESMTPS id r1si371538wrp.3.2019.09.02.02.37.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 Sep 2019 02:37:43 -0700 (PDT) Received-SPF: pass (google.com: domain of james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32d as permitted sender) client-ip=2a00:1450:4864:20::32d; Original-Received: by mail-wm1-x32d.google.com with SMTP id t9so13833612wmi.5 for ; Mon, 02 Sep 2019 02:37:43 -0700 (PDT) X-Received: by 2002:a1c:c747:: with SMTP id x68mr36047272wmf.14.1567417062758; Mon, 02 Sep 2019 02:37:42 -0700 (PDT) Original-Received: from [192.168.0.33] (cpc147644-aztw34-2-0-cust186.18-1.cable.virginm.net. [92.232.198.187]) by smtp.gmail.com with ESMTPSA id f66sm476010wmg.2.2019.09.02.02.37.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Sep 2019 02:37:42 -0700 (PDT) In-Reply-To: <92055fd0-049b-4943-a51a-2eb0905b59ca-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Mailer: iPhone Mail (16G77) X-Original-Sender: james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BzM1sqcW; spf=pass (google.com: domain of james.londonsw15-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=james.londonsw15-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.org gmane.text.pandoc:23350 Archived-At: --Apple-Mail-42ABEB46-16A1-49B9-A341-B97DF3947317 Content-Type: text/plain; charset="UTF-8" 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-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. -- 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/5E6256F2-6354-43F9-9A49-2328471A9D2B%40gmail.com. --Apple-Mail-42ABEB46-16A1-49B9-A341-B97DF3947317 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 <hecknar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi!

We are using rather complicated templates to display certain infor= mation about dependencies.
These information can be exported in y= aml files and looks like the following:

---
dependencies
:
  external
:
    hardware:
   
- Description: Text here....
     
Dependency On: <= /span>Text= here....
      Date
Required: Text here....
     
Dependency Owner: Text= here....
    &nb= sp;
Color<= /span>: Text here....
     
Status: Text here....
     
Last Updated: Text<= span style=3D"color: #000;" class=3D"styled-by-prettify"> here....
      State<= span style=3D"color: #660;" class=3D"styled-by-prettify">:
Text here....
...

This is = a perfectly valid and well-formed yaml document.

N= ow, the best thing would be if I could simply loop over these attributes wi= thout 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.<= /span>hardware.Description)$\textbf{Description:} = & $dep= endencies.= external.hardware.Description$ \\ $endif$
$endfor$


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

I tried it the following ways:
$if(dependencies.external.har= dware.Dependency On)$
$if
(dependencies.external.hardware.Depen= dency\ 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 e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.co= m/d/msgid/pandoc-discuss/92055fd0-049b-4943-a51a-2eb0905b59ca%40googlegroup= s.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://groups.google.com/d/msgid/p= andoc-discuss/5E6256F2-6354-43F9-9A49-2328471A9D2B%40gmail.com.
--Apple-Mail-42ABEB46-16A1-49B9-A341-B97DF3947317--