From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/20714 Path: news.gmane.org!.POSTED!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Numbers as YAML keys broken? Date: Mon, 30 Jul 2018 22:12:20 +0200 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed X-Trace: blaine.gmane.org 1533061978 17045 195.159.176.226 (31 Jul 2018 18:32:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jul 2018 18:32:58 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIY76M674FRBV6XQLNQKGQE56OCOFA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jul 31 20:32:53 2018 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oi0-f64.google.com ([209.85.218.64]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkZS1-0004LR-Og for gtp-pandoc-discuss@m.gmane.org; Tue, 31 Jul 2018 20:32:53 +0200 Original-Received: by mail-oi0-f64.google.com with SMTP id e23-v6sf14546437oii.10 for ; Tue, 31 Jul 2018 11:35:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1533062104; cv=pass; d=google.com; s=arc-20160816; b=LcFLcntn2/FCkC3C0OKY899NyIOMjsCLaRKjOjTHXqjGDNA7r8bZidgL5rXHyiEHx9 aq9GlIkqyId8bIqfxc4Y5bVbUIm9OHOE60H4R0hCvu4tb3BaBUha4TVblDvD1XoYKZLV yEoWAkxsK1IVXWV0WynPi5Pvs7jQwBqxvagUrX+ZL99xT4FWaL2vxzqcHiw/02dc9tdf Fr7s/ljFUWSPJi4nEmbNUTlwpYcVZRy9rdIX6nBdM15C8w6V5HyxABHxrgPBji62kSx6 wMOA+OxGpz9cLJgQJbaACWeFGjqdXmhFaxltUiWpn90whZP++u5fO6XKcD0VR166R4yH SLRQ== 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:content-language :mime-version:user-agent:date:message-id:subject:from:to :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=G8ZWXL2GIeWQayqn+eSlWqq3KwtblZJCDaIGORUaz2s=; b=KcWoLeFa8BmajIpssYLRTEE4GIl1c1EpS6JkzEMDQyBbYGrlLQXOeARsIdwSjMR5c3 AwclAyUzJUGCTRSFtZasxc8YQRzDnOzFxLNKlGXADaEPZY8oEFYXZVGaV0SqZOKyPWo+ YcmMGXav58+leB8HxTRgD0GlZHYqqwJPFpJ909KrC8Znk7JFvqDEbuWkvG9V5KWkcwML icFu4c3rRgJ7miSkxnUTrPrbhuFgwhIwBupit6rqlBMro/NO2IYMhloX2MQdmMHYj8sF TdX97iSkyN8LiWWoL3mKQTi4FF9DR0SEcVgpIpslHXd3ZffntHkvXqYgdY5USt24Rsup ow0g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=policy (weak key) header.i=@melroch.se header.s=default header.b=izgM6DDU; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.242 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (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:to:from:subject:message-id:date:user-agent:mime-version :content-language: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=G8ZWXL2GIeWQayqn+eSlWqq3KwtblZJCDaIGORUaz2s=; b=Am65AVZf3tGETtKLr8vd6jM56Wy2+v+CpX27OLtKVpCCuMNGXp+3MrQfSD6+kP61d1 A46CE0tm2TuPGj96aTfFeaqtJSyTjCWyVRz9bETIDejjpDs7w8jAna+1VPyDmaSrEsG0 L4RU4aaUXHCkHkdkeGZgxri+RQGHMRMK3lqyQ6xLafU12jN8xUzzrp7l5jwZkqrrWJmH 4B/bn7681jRexm9pdoU/npHQZk0jBjwFkJhV1k33kS2olSPAoaQ6r0LkiRhtpJ3/GkqR QaDMR3k3YVmjuJfplzD31fc97T85saQgzWTYXcfVmIfFyvj6vO01o/zO+E3TpPSRgb/z hRxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:to:from:subject:message-id:date :user-agent:mime-version:content-language: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=G8ZWXL2GIeWQayqn+eSlWqq3KwtblZJCDaIGORUaz2s=; b=Kp+X7uwHmnyZCw8NxJa2kZ4ux1ixeLx7t4BvIEG/wpq9lBzNu2DriB8ASwIVqtv7Ww jt8txHmyUB5b3VS3SSFzYxuk/cMOpw4AKu8rXmUMHFR6yU3POwoLfCOX4XSF37rsNHKu WCKuGFUpdtPoQ27t+I4kS2kS38R/O9JsHUEMopHfEVxAg8HKVUpy//XeUulgEHvSOIBI H5+FNNGBK3Ux6qEy680J10fCTJ2F6ooUs/IDoZsBsLMVQXL4H/KrPbJIP1Gr6huZ+5rH XTEnBN7ggMfDHOLJ9any+3tkznth0RcbClUJ87ePYwf5qtSUIKKLE6WJWq03TUH11bVD Wm0w== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOUpUlHIilGNDenxEoJn2Fg3SOcNiPOJl8WxCyX3G4KopenvkdjusFtJ Jfteb6CLCjyAS4ZSD9+9d90= X-Google-Smtp-Source: AAOMgpci+tocREmJyVdqnZ7GQ+5kMXt1tosON9yUX4IG5wrQsPn7+2WlgwsTP1e1uN8mz2uob4aMVQ== X-Received: by 2002:aca:de07:: with SMTP id v7-v6mr476016oig.5.1533062104352; Tue, 31 Jul 2018 11:35:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:4dc3:: with SMTP id a186-v6ls7616177oib.21.gmail; Tue, 31 Jul 2018 11:35:03 -0700 (PDT) X-Received: by 2002:aca:3d8a:: with SMTP id k132-v6mr13239622oia.19.1533062103435; Tue, 31 Jul 2018 11:35:03 -0700 (PDT) Original-Received: by 2002:aca:ad57:0:0:0:0:0 with SMTP id w84-v6msoie; Mon, 30 Jul 2018 13:12:26 -0700 (PDT) X-Received: by 2002:a6b:8753:: with SMTP id j80-v6mr6887609iod.87.1532981546615; Mon, 30 Jul 2018 13:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532981546; cv=none; d=google.com; s=arc-20160816; b=k+bZ61d3o3X0zmAsb1oGGAGMTHKq2X2OkY+wtc2twBvmg8+r15Q/y+leLc1HVcRM9S n+9mN3NPx0q0b/T4wtB5RvC576srhDmF2ZTUT7V/4Kq6rpGo1rB5EvRTVzex+efQB+zk 4yjivltT0lbrXTUBl/3ME2fcy7YGfRyqDRGxr2zyQQMz5FpNAn2tV5klkdmLEamZKu+p wIxsGnQkYTEFHg1lrtpQWfSGxmgTlkwBUVlFLqzD3kABjoQcgeGSuEqFxWwsCHbrEFru LxIXapPnDoHXxic4RAA/6zgwsJ+vV/yyKhR58QISaKbQJ9q7KxM7O71U897WvaWMN0qE 7d/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:user-agent :date:message-id:subject:from:to:dkim-signature :arc-authentication-results; bh=wgkXkrVcrcTKoT9a3Ov8N41xXe0MQVIjED2DAuiTmOM=; b=DiSDM63CscVayBCRMC3IOWReWuqI3lFhNuUlsEswwg0rxwwrohcyyxBjM0ptwd9VwZ 75jzj1Pi92X95RKaA7g8QxTKpQ12WP+zDWhuXYiu9/Um8KeJsgq6W9TG20nTJQFcbVpg 5pUjIdIpgtv5Q8WcQORIgJKAgh+jGo4Deuhou8RXRS0Edvzzzlo4CgKmUYsaj7r3gEvT kuykSwG6VHxZEU5GaBIZppohTl8b9/1rsXdzdN7LYBk/O0KWDsB70lcpda/pMlIZFb5n GPo2d8mQ8AzlxOeMBkLOFk0C8sff7Qdjm2iBawf/nh2LTdkucFRfubTPPVr+vRBevWHA jDlg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=policy (weak key) header.i=@melroch.se header.s=default header.b=izgM6DDU; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.242 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from manu6.manufrog.com (manu6.manufrog.com. [138.128.164.242]) by gmr-mx.google.com with ESMTPS id p16-v6si103558itf.0.2018.07.30.13.12.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jul 2018 13:12:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.242 as permitted sender) client-ip=138.128.164.242; Original-Received: from [178.249.150.165] (port=59121 helo=[192.168.1.110]) by manu6.manufrog.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1fkEWn-009AEY-6H for pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; Mon, 30 Jul 2018 22:12:25 +0200 Content-Language: sv-SE X-OutGoing-Spam-Status: No, score=0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - manu6.manufrog.com X-AntiAbuse: Original Domain - googlegroups.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gmail.com X-Get-Message-Sender-Via: manu6.manufrog.com: authenticated_id: bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org X-Authenticated-Sender: manu6.manufrog.com: bpj-J3H7GcXPSITLoDKTGw+V6w@public.gmane.org X-Source: X-Source-Args: X-Source-Dir: X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=policy (weak key) header.i=@melroch.se header.s=default header.b=izgM6DDU; spf=softfail (google.com: domain of transitioning bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org does not designate 138.128.164.242 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=fail (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:20714 Archived-At: It seems like pandoc 2.2.2.1 thinks that a metadata block with numbers as mapping keys is a table. If I quote the keys/numbers it seems to work OK. Is this really as it's supposed to be? AFAIK the YAML 1.2 spec doesn't mention any such restriction. Please see the three example inputs and outputs below. The second one displays the problem. /bpj ``` IN --- foo: bar baz: biz: buz --- Quux. OUT

Quux.

IN --- 0: bar 1: 2: buz --- Quux. OUT
0: bar
1:
2: buz

Quux.

IN --- '0': bar '1': '2': buz --- Quux. OUT

Quux.

```