From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23365 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Can't access keys containing spaces in pandoc Date: Tue, 03 Sep 2019 09:25:54 -0700 Message-ID: References: <92055fd0-049b-4943-a51a-2eb0905b59ca@googlegroups.com> <5E6256F2-6354-43F9-9A49-2328471A9D2B@gmail.com> <68fbd484-0729-4ee2-a7a2-0846cd0bbd28@googlegroups.com> <7c15c170-1b08-4274-b24e-280b4585c0c6@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="188566"; mail-complaints-to="usenet@blaine.gmane.org" To: Frederik Hartmann , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBIFIXLVQKGQEFVTB25I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 03 18:26:14 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-yw1-f64.google.com ([209.85.161.64]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i5BdC-000mnx-1A for gtp-pandoc-discuss@m.gmane.org; Tue, 03 Sep 2019 18:26:10 +0200 Original-Received: by mail-yw1-f64.google.com with SMTP id y70sf5641135ywd.8 for ; Tue, 03 Sep 2019 09:26:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1567527968; cv=pass; d=google.com; s=arc-20160816; b=hDNM47CgwJMKH0w1PXrMULIqnb8/XdDpVHyUCqmKTQX7o6jCXnIeYZUZdE9DTqzpLc rqQMaaAfpng8s1SXcPDX9QqV/Js9WiCASTLXIrtF1KL4IZNdijwRktUAOA/bWlcHTr53 whAR2Xg0Na+yEvYMBn4IIcpvZP0PemF/jieERCTL3mXGgrDoPKne6e87ptD+ejGAMyWA Uy45P4RNVvRBa4tN0AZ7574H+Nk9QuRRSyWaiV4a4CGncwWUH0kUll0gLoeSr2LwSwU/ 3IogDAfuMbMdbieRSA0Gd5e5SgPLn0IBBM8PtGBqYTcPQGQg6jQjQRZkU3/cERczW24f hxnw== 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:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=Xeay9T+Fh044GhRWYbEqglGWWsZofaCb7GbKOkqSb+Q=; b=nwCxxQi67K4CWrM/lguVcJyEF5PxWWVzdvuOvyfCKsmhLoU9gJocHdBVntWxigBAcI UNjvgicJGCER+tc4z4jDEPo/yyXSqQ02mc8ij0A6IOmKqklBFQ7dN0j/ATw3TqJLChNO f8S5CYDuJomgccdSc52AiTkMYUAEWi+DZA4sSr0GSlt1a/aobXedZhe4zWC3OWquCVWG 8eRN/3CmUR5eGa8roZoVC6LSlGhVygANy0T95qbzv3yoGLbr1OoAOjXy0JwaDEddO8Lb i6UGAA8dyGZkVY68ee+cjnWo/s0fkCwHvSkXr7VfAQBW5QAzFrdmxHOWwr3UiQd9eDdf Pc7Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=WJqaw7XB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::631 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version: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=Xeay9T+Fh044GhRWYbEqglGWWsZofaCb7GbKOkqSb+Q=; b=cH9PvJbh4e/FCHsaMjtgI9j1Je3EV2JnPtaS5TGib1F5wCS0m6NW+dREYLpNfAO6P1 19mpHy40FBTJsQGtl2b/74tbXAeOhlRT3OQfZ7rL/ppDkFw0nfkGe5f0afCxTSxduJ3G tWPYB5R6MxGbTvmyX4TMMa0s0qYrGvsWlKOn09Iq147GN7u7BEoep/KIAHrPLTzITw7R CHe+WpLWxIFMNlnuRgOnXwcY3U7JfM+MIVCPNwOlAELlwB/uh7AfA52sjY8WiJVt7aXY NoHW9WX0c/4J8ljyjmdolOj//P5IRqBirHAjALJs510ixumZ7TCil99nN1K+4xy61vEy NomA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version: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=Xeay9T+Fh044GhRWYbEqglGWWsZofaCb7GbKOkqSb+Q=; b=ltlfBYyQ1lfZ26ICjIen2cSqwPYRzIROU7J5mK5g4R+Oh1Vrfgk60rr31JPVPtXdm3 yxxZjBIiaGcjA3WdbIWVjVVI26i+30ByJVVA6ukYWOSqHQDC+RGBth1YTZEcN4fu8NYn PPVa0493HlHZFHQ8hTb2NBYbAo9y5hc92J4oAxvkshxrLnhdBb7iPZAkJ1CrfdEULHuC s/dhYIASM1BwL0yXAH9nF44h3YLbiHfuH5mKiKEn7tW5/Ny+rBJ3IP/1PQFupAA4uRkc t5LHwA13w4zu1XVlS6ypuZiRGoLwkS7jjRKLCRmwhLD4SmaMn6IzD5vNb4O2fqWu1oiV zDgQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAUltZJqxjIjCfwv8t5tCDD5pFHJTxG7qViODkFwLn+qP500n99i forn9h6UMnWJ3T+Smb/2O74= X-Google-Smtp-Source: APXvYqxM8m7gyBRf/2G5Cr/zYhxsQMt9yODMPf+gpUedus3FZZtzSU6sJNgF6rBovpCnrKM37xStsw== X-Received: by 2002:a25:86d2:: with SMTP id y18mr23465760ybm.433.1567527968815; Tue, 03 Sep 2019 09:26:08 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:be47:: with SMTP id d7ls2438923ybm.14.gmail; Tue, 03 Sep 2019 09:26:07 -0700 (PDT) X-Received: by 2002:a25:a2c1:: with SMTP id c1mr26227170ybn.177.1567527967840; Tue, 03 Sep 2019 09:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567527967; cv=none; d=google.com; s=arc-20160816; b=nE5FnyJIB5Bt9MeQwwejwQwZlgfhZUNFM2N7OxMLaN1EoMU38xIWKfBWZ2KBvU801T ffmGN2wu0Lf/NW8l6s7xeBKDBPCy8OmXSbf4b6TlDs5mycLA6qVVE7wnsrb0RaGcDOHC an7JEI2Fd0eoq0p+mVFG2PoQb/WLu0bFnkYdT2zTmOTUOMqMcGp2hohaLicaYk6zn1wS cEn08TP/aWpYvJMQYQxXAofGU+t5jNiW8qWZBhbU2/QsxRxNCrPG0JK12uIJxgzkyBjp sHpe5HOW7vZUHYMxwrPAK8ziTKcI4iYxYVwgX0LvQr4paBYP+qxowFbDVCk/RTz+L3s4 RTFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=LdXxIQoZCQzgZjUQqF7hG7xIiZz4o72F3D6nuLXg69g=; b=mD6mVrWX5RX4ul6nGwrPvva96YzgCjd9aEonoOkJ43fiOHQ/O1RfDYE4niydEY1U+K FpjE8R6GXn/U/zPBpyDgiEN7jNySPXGalqHn80JDPLeFPn0URXm0AWIkS4aIfewYutSz 3+VzWTFKi+PzNADhFk1nkbCifh68p+ZvjbinYvNLWkYQV2ZE3tl27ed4fWmCZBwxXyPK FKXOUruuNmbGBK2WwZiao2CfpLqjrUMlc9cNfH8+t6Qd1rtFfLyf+iOwlpJnIh04dSeQ s14O8T8iAyBBtmGeW8UX0kXSPrzEiyejBN4xUxK3KC87wqMIQhn7hjm/ny4dp6t+YM/L LfOA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=WJqaw7XB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::631 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com. [2607:f8b0:4864:20::631]) by gmr-mx.google.com with ESMTPS id u187si482200ywd.3.2019.09.03.09.26.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Sep 2019 09:26:07 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::631 as permitted sender) client-ip=2607:f8b0:4864:20::631; Original-Received: by mail-pl1-x631.google.com with SMTP id o3so8081183plb.13 for ; Tue, 03 Sep 2019 09:26:07 -0700 (PDT) X-Received: by 2002:a17:902:3281:: with SMTP id z1mr35881313plb.302.1567527967111; Tue, 03 Sep 2019 09:26:07 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id s13sm20768602pfm.12.2019.09.03.09.26.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 09:26:05 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id D636BA16D; Tue, 3 Sep 2019 12:25:54 -0400 (EDT) In-Reply-To: <7c15c170-1b08-4274-b24e-280b4585c0c6-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com header.s=20150623 header.b=WJqaw7XB; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::631 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:23365 Archived-At: It's something we could think about. There are two possible approaches here. 1. Modify doctemplates (our templating engine) to allow spaces in variables. This would mean allowing things like $this is a long variable name$ in a template. I think this kind of thing makes it less clear where the variables are, but it shouldn't pose any problem in principle. 2. Modify pandoc so that, when metadata is used to populate template variables, spaces are automatically replaced by underscores. In this case you'd use $this_is_a_long_variable_name$ in your template. Comments (from anyone) are welcome. Frederik Hartmann writes: > That's really not the answer I'd have hoped to hear... > > Do you know if a PR fixing this might be getting accepted? > It's really limiting when perfectly valid yaml can't be used as template > input. > > Thanks a lot though.