From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32048 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Lua filter to process chunkedhtml output Date: Fri, 20 Jan 2023 16:33:07 +0000 Message-ID: References: <1D22B433-211B-4033-8A63-F637F52B2008@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000633f8d05f2b49bcc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19651"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBT4EVOPAMGQEGKLQYOQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 20 17:33:23 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f58.google.com ([209.85.128.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pIuKQ-0004tH-R7 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 20 Jan 2023 17:33:22 +0100 Original-Received: by mail-wm1-f58.google.com with SMTP id z22-20020a05600c0a1600b003db00dc4b69sf5084835wmp.5 for ; Fri, 20 Jan 2023 08:33:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674232402; cv=pass; d=google.com; s=arc-20160816; b=b17x8JwV/ydBwT6QHSZbXhK1jcFIdY7+4wqXZMBblGAhUoryAzw4RzOPSJui31hFsc IywsvHAMLYvpIgPDSThQgiAVyj7WX9FbAhUgeY+BdoUteP/4VXOD1p/ScYzWEfzAj2KJ UmGlJEFbIRv54HTLFZUN1Qggy11Jufchy+6PUpXnFmKkmMwzEBvdhht1ZPyJIM1yvekT kxmlf30gombNsKURG/3zutsOpBPbBfmwI0JvCuTD4HNVJXL+By8Eu+ulKvAdkEXkV8He 3QbQeXAgad2pOWzO5AGXWbWckVmYaDkqHmBFTPlhVX++e0acM3fZbwEdc6pTAU1LjAZJ gVyA== 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:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature; bh=pSdAazpVRC15/SevqkQnwaS1HaiZYVkHwOu8JnilmfU=; b=Sf/sNM4GORDLszZFsyxliZeDTKrbRPTqik6b94JIRwjWDTUZLGCJp2dxW04efONvvu WL8QO2sGAMSG9shzf4w5PO/ciB6Ue6n/b4OHXqEhY0ioSCAvghY+4KD3mQyDm8GntOoc 71aCxEg8nKgBxUyYKRp0z84LPHOIpdPwtCdqz0wWmLm3zcTn/M84M31Iaxg1N2/yOWMQ 2p32YJEkTDcMD/uPCX20wjZPvVUaNVUEAHw/UTu34tCSvD+64DOu5WbLl4tYup4dDzo0 7gbsy3vqKUBkDWzaiWdlX0Zf+YAmcW4cLiX29lcGCJ+qBjHWbQj9t4Ysq1eSg8sYzrfN 53tg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=oukjn0B6; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::52e as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=pSdAazpVRC15/SevqkQnwaS1HaiZYVkHwOu8JnilmfU=; b=W+sSPM8Ajnm+H265PYXEPuXDqcfwf1Hzgk+4/ZQg4tUmPz6k3h8gineD95r9NhTnoX n7ORFddJvnf4ojyKoXiPu4l9kq35bz8XuTpQchJEn4dKYKn4cFXgnTb20/vpGKcUM84u JejYOyaeXykDkwtx+q4Kx2KoYkquLKIi8DK2P+c+jFEmWxr9G345bNleC0vPDOUprhD5 UXtkNH8T9MxJjs0nshvEsbvPOlOCokWm6SzX6QxhxzxXUaAeXSrnwIj9ekpGebkKINPS N3u5Haamro0YSEYvza6ouazUd6NMed7shH1FlgtyAbmT9qDJiuVGPv3QCB9BCzEPLzKH 5r8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pSdAazpVRC15/SevqkQnwaS1HaiZYVkHwOu8JnilmfU=; b=DWrbvXNrsEjcC0WgQ2m9YoNFJIUc7CANVeXOBYTG0Ly3DL0+4qozjLKZK6miR/r1KK WkYXMbXCa8Ks22pSzPUk98S2HtkERt8FVWKrl9bQDId0WL2S88iHleziNBhHGRJZ1ACp weHLb+QVrHbXiwekN8A5Lmscrtnb+z/DHhtPsOB80DhYQTYrJlFIdoNy5E2CHCTW8ZPI 3SOXdQ+Yl9Dh+rktYY6a3wyCGxTdtfOtTdjhXUdFaYJuy0F1zPDr6s1y3oLwf2HniPQr XB9wGYqhPra4yRmiaEioSb7Bn7tnwVW+DZORFZign85I3nhNW3eCub1K3fAaaiV X-Gm-Message-State: AFqh2kpRgcU9GEtV7v1hEi2HSw4Ks3O2VBoLpvuMMHrYXohjLdCCza/i CFlx/QhsaqkCioRaVROM4ow= X-Google-Smtp-Source: AMrXdXvMUqW1rECUNLm8u7rOFhvfydCWPUhYTlCLheZvcKr6B2RTYYF2gLX/zr/hql7wrKa/bG5yEg== X-Received: by 2002:a1c:770b:0:b0:3da:f653:9e95 with SMTP id t11-20020a1c770b000000b003daf6539e95mr878179wmi.154.1674232402436; Fri, 20 Jan 2023 08:33:22 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:600c:3b90:b0:3d1:be63:3b63 with SMTP id n16-20020a05600c3b9000b003d1be633b63ls4674220wms.1.-pod-canary-gmail; Fri, 20 Jan 2023 08:33:19 -0800 (PST) X-Received: by 2002:a05:600c:4f96:b0:3db:2dbb:d70e with SMTP id n22-20020a05600c4f9600b003db2dbbd70emr4049917wmq.6.1674232398988; Fri, 20 Jan 2023 08:33:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674232398; cv=none; d=google.com; s=arc-20160816; b=tOJ5rW6AhBRgYZbOgd+7gfK9tfyH02E38ICVkMf+9U2ugtPrtWYKWS/hm7OypZx+T5 7E//pVQXOoUD+4JQ9l/PmyeM3Tc1+0+gMvSsufLNis0lAIEzM0vOZgciTMgR+xqKWSev TGBg9w1sKl9K/O9SL5Axwx0/DdtRK8EeFbjAWFZQP1CVEwHwxM+Jb/83oXbxJa4BC6Of oPFK+QXfOpBvyN2eFsVeVUCDaaLnaxjX04BR9k4G14ABTI8u5yF2aZX+YPhWTOoLOO30 ommb2ft4DBO5JW2lE/SJ9xspfYwe+cgBZbNPnKqeXcFGvi4CNXKDPO3eEvx96N+7xxnL GC1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=IYzRZ48xE/5HWQXVCIn1N/bwJCLnIxdFGEN62dOWAfo=; b=FbBIBiHAuToQGVQB98SPfzyl1ukrztKTQU55a0Fopo2605J3AhyUDcL+zE54KYdr1P XHLkQVgo9Hg30UV7knF+ZG1StcTovG1ViPO+/buG7kq3MT3JvKL327CN7SX/iHT+gxx3 hvEaMnHXvokDUieCzXF2SoUJKPw/3uEgxxuR1MR0maJIw1E0MlODQinHwYr/bH8+e0Iy GAw9tErHjmpJ/9oLGU7Y1nYWDziNOoG0gvsYMhXva9c/JllAuClWxisg+gLQpAJwHUL1 2OiSBBaC/9Gtnaulw5CgVHQt8B0uOTrlgb8+3O/kcLINCuq2iOz0BMWMorOIXf2L3ome 8djQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=oukjn0B6; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::52e as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com. [2a00:1450:4864:20::52e]) by gmr-mx.google.com with ESMTPS id ay1-20020a05600c1e0100b003d9c73c820asi510869wmb.3.2023.01.20.08.33.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Jan 2023 08:33:18 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::52e as permitted sender) client-ip=2a00:1450:4864:20::52e; Original-Received: by mail-ed1-x52e.google.com with SMTP id y11so7326580edd.6 for ; Fri, 20 Jan 2023 08:33:18 -0800 (PST) X-Received: by 2002:aa7:de99:0:b0:499:376e:6b34 with SMTP id j25-20020aa7de99000000b00499376e6b34mr1849088edv.10.1674232398554; Fri, 20 Jan 2023 08:33:18 -0800 (PST) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=oukjn0B6; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2a00:1450:4864:20::52e as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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.io gmane.text.pandoc:32048 Archived-At: --000000000000633f8d05f2b49bcc Content-Type: text/plain; charset="UTF-8" Update: Until today, logging.lua assumed that pairs() would work on all userdata. Option 2 (my favourite) should work well if there are ever any other types of userdata (not sure whether there ever will be). On Fri, 20 Jan 2023 at 16:29, William Lupton wrote: > Thanks Albert. I expect I'll raise an issue. I assume that this is the > only use of light userdata? > > Looking more closely (why didn't I do this before?) I see that tostring() > returns 'userdata: 0x0' for these values, so I think it makes sense to > report them as one of: > > - Whatever tostring() returns > - As above with the leading 'userdata: ' removed > <--- probably my favourite > - As above with '0x0' reported as 'nil' (not sure about this) > > > On Fri, 20 Jan 2023 at 16:05, ChrisD wrote: > >> On 1/20/2023 2:54 AM, 'William Lupton' via pandoc-discuss wrote: >> > I investigated, and parts of the writer options are "light userdata" (I >> hadn't heard of that). I've committed and merged a fix that will report >> such items as "". You can now list most of the writer options >> (just a few colors show as ). >> >> Your update works well. (I didn't know about light userdata either.) >> Thanks! >> >> -- >> 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/fbca8e05-fed7-39e1-08f0-0498c399f33f%40intielectronics.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/CAEe_xxhhsG_NA%2BPL%2B5A2TyHHqNOC-%3Dsdi1jX-NYunf9fsHtH1A%40mail.gmail.com. --000000000000633f8d05f2b49bcc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Update: Until today, logging.lua assumed that pairs() woul= d work on all userdata. Option 2 (my favourite) should work well if there a= re ever any other types of userdata (not sure whether there ever will be).<= /div>
O= n Fri, 20 Jan 2023 at 16:29, William Lupton <wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org> wrote:
Thanks Albe= rt. I expect I'll raise an issue. I assume that=C2=A0this is the only u= se of light userdata?

Looking more closely (why didn'= ;t I do this before?) I see that tostring() returns 'userdata: 0x0'= for these values, so I think it makes sense to report them as one of:
  • Whatever tostring() returns
  • As above=C2=A0with=C2=A0t= he leading 'userdata: ' removed=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<--- probably my favourite
  • As = above with '0x0' reported as 'nil' (not sure about this)

On Fri, 20 Jan 2023 at 16:05, ChrisD <cd34-gg-4SSc53hpTiu9TMao6EloiEEOCMrvLtNR@public.gmane.org= > wrote:
On 1= /20/2023 2:54 AM, 'William Lupton' via pandoc-discuss wrote:
> I investigated, and parts of the writer options are "light userda= ta" (I hadn't heard of that). I've committed and merged a fix = that will report such items as "<pointer>". You can now lis= t most of the writer options (just a few colors show as <pointer>).
Your update works well. (I didn't know about light userdata either.) Th= anks!

--
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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/fbca8e05-fed7-39e1-08f0-0498c399f33f%40intielectronic= 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://g= roups.google.com/d/msgid/pandoc-discuss/CAEe_xxhhsG_NA%2BPL%2B5A2TyHHqNOC-%= 3Dsdi1jX-NYunf9fsHtH1A%40mail.gmail.com.
--000000000000633f8d05f2b49bcc--