From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29424 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Lua filter broken after upgrade to 2.15 (macOS) Date: Sun, 31 Oct 2021 10:42:40 -0700 Message-ID: References: <7c1cf170-c5cb-4203-a4ba-36407f0ebfecn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22645"; mail-complaints-to="usenet@ciao.gmane.io" To: Albert Krewinkel , pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBO5L7OFQMGQE4S2XDOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Oct 31 18:43:27 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f64.google.com ([209.85.166.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mhEre-0005hh-8h for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 31 Oct 2021 18:43:26 +0100 Original-Received: by mail-io1-f64.google.com with SMTP id w5-20020a6bf005000000b005e1513b2680sf9221800ioc.13 for ; Sun, 31 Oct 2021 10:43:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635702204; cv=pass; d=google.com; s=arc-20160816; b=kt8GBgRBCsYci13BLH4DDyq8PdexwYrriyEiiCih/8q4HKNDn2fzJXKsDFGcH4o1Ku e8oAEpj9Hpmjnnm8kjWKQstzsuJ0sIweJm6D9iBOkaDKNGxD/S8KS8NZkdEUhAIN1jMQ RWw3PR1STGbDIuIu+V68b7Nerzt+jgVQ89Lfr02EEbFacZZCkMgv9KlliobHXbjlM35r TxKxXYpRkrFRj6f5maRwxyA0pDNivSw7Z5q8wfzZFU5CgFYtQhdAFL7Ko3IjcH/u7VR2 7za3tBtTkDWNsC4MpNWA7AvZQIeTFTjTNYcoRnG2Zkcbx/IYbAavH4fpDf2+Pkmg4/nl quuw== 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=kFByURYbZnddNm1fRCtORCZaa2bEWJ5RlOPYSO+66QE=; b=B5PLk/svtE9galGCSOQd7H3FxEEjt6+2o+BSgCoGDjySwkMefQu/kVZvwo7Zg7vwBR zPn3A3gptJuvLYcGS2d/h8T/WNX7/YEU5pznpPAQQLbcDKAZTegqrFPfbbXj1FUkEJGB K+gK7HdGUSXgKQtNBE9h30CgdHUYOImoFqYVYXQhscMkjR2WYuiEfF2Be7tX/L1QtCX3 i8nCloq1LUinvr5ZQRSxuCTBozEaUU5BZbnvlXrRBuIGKo9YTopXm+5ll/nGbF6u7ob7 ySY5sDIOZw7FsHnjddm0LlcZVipNtUnmgA3gWYCpPAvK10hfD7bh+/gs7I67SBgLExf6 9AsQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qhIJfEy8; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62b 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=20210112; 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=kFByURYbZnddNm1fRCtORCZaa2bEWJ5RlOPYSO+66QE=; b=OLJvpWUuDnOyjnlqrDzLWhFsO2POYOP6s0K5WWREPe0JCCOt0ue6txwlSjIpMqbKN7 yfApqwSzgwDJZbJL3cw/dgfM6Z2zV63zwOz8PYHv1hUgOaW8lsxDkz7ke0196BVohT12 vUtG1G3zQLP2slvfzoUmif+FEHPmG9603xSbSQ9QeVnNpHffqPH0yH+/X611h+twIPpc zLZFq81Rpu1zS00ys2VR/hIRwAAXGKUboD3XdCsGvoDNEedSEnvbLxUxEbF/ueA9mqLq HRZEGhU2CvlJTGG4Qsd66SuvcNBw0xpcxoN8hUKBYIJVKBia2vlJFz30KVmZPLZHph2U 2syw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=kFByURYbZnddNm1fRCtORCZaa2bEWJ5RlOPYSO+66QE=; b=VRjOg7Wif/udMJXWVeB2znDfkgBvz5eABUStM3IZTGk1Q9zUTVZqUOymcAmH8jtnj/ fm+0b0pqG04+P5dO7A25CU5JpAUc4ZppB9EPWv42u62kXm6U6b5AZ4geA4yECSwOcFNk UPk3u3jyPy5MvYIGDAYoG0neCThiolFMP2Mon7Zklw0y7YXU6dJGw7UzWgFjWofOB3QQ UDHnLvUV9zbiyWfQiq5s7Q14eMeozrm6M764xqtiL7irGUiXR8C6C6GRxq7MpaDyETLk UIJCpEDYqhlJ7R/oyxAIB9V9tEwJKQQOgBgv+Mp3c3pzYZpzB/zG9OyGIGIhiABsfGMk ryeA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530kH/VK1QYfFkkkezBYWA/BQuhX4w0CUZqxjbkEHLTrMcgqD0vJ KJ/C8IOvsVzj4XFOkLXRr8o= X-Google-Smtp-Source: ABdhPJwG7+ioayG1eK+41zciG5lIzhYuV7R0IZ8Owk44593UYYwHYFtqBfofa5of/lJiZaNbaW3JvA== X-Received: by 2002:a05:6e02:1c2a:: with SMTP id m10mr3265791ilh.192.1635702204877; Sun, 31 Oct 2021 10:43:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6602:2b92:: with SMTP id r18ls1035155iov.5.gmail; Sun, 31 Oct 2021 10:43:23 -0700 (PDT) X-Received: by 2002:a5d:9ed6:: with SMTP id a22mr17518154ioe.167.1635702202988; Sun, 31 Oct 2021 10:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635702202; cv=none; d=google.com; s=arc-20160816; b=VYGqiV1YQC3kk2E5DKQ1wyCd2v85wmawudfPMhconxAgvJl1W1KrTcLJVlCv386CwF 25XlCL3dZx32cs3OeAB0MGp+8uJFd3N60u+fQJQ1OevV2POWXFN1tatQ9YQKCW3XMmHz 2FQBT1ZbX7UoqwXFqraIUF0+ul/2ViHfeDRoHwAS0AUqYwBN5RM68RZTppmtOPqAJCVU S1EwIjn+ILJW5bSGpQKxkkHC3bkJRa3B1ScSWd4dfgg8tXzeene+Yrf8R4bKpTEsq6aH fbTZaHdYuoDS16LN//AnEDVQFwW3/NAVq275700Ou/q1ocVtqgKJZYEdbrpz24Vto3xs FKJg== 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=FdpqpGGgCBb06lglfmWt9nsibqSKl+tT9xx+OhW5n+M=; b=gf7gEsKiIXmCpr+Fip+AatzkK7n7mgP4Im50hzMuigN5iwoEngtZBha2m8l2BlhbBO /YwGpAuq6HRMGiZDlyZkyt1o0W2+8ly81FoI8cbFIxKPBjce8QDfZhgcQ2UFGIO7cmwI mReV11duSHoWEl3J4JftrFBFecSSgK+bhLp+NOyOM4ke/BTjTZZ8Hh7w/rVrY3Bopmi+ O0XT6pahPsvScWpOoRS+FQGsNBWlBLWvvAc3P3496wkpWuE+J47P8bXAvWBbSFerXjhL EL7gA7IOoP49ZH8v/7GLNsk0bJq2P+QtnnrXu4aCn3d+L1pSVKjn1HJYPbZ5XizkubtS jtvg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qhIJfEy8; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com. [2607:f8b0:4864:20::62b]) by gmr-mx.google.com with ESMTPS id w2si94654ilh.0.2021.10.31.10.43.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Oct 2021 10:43:22 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62b as permitted sender) client-ip=2607:f8b0:4864:20::62b; Original-Received: by mail-pl1-x62b.google.com with SMTP id t21so10121864plr.6 for ; Sun, 31 Oct 2021 10:43:22 -0700 (PDT) X-Received: by 2002:a17:902:708a:b0:140:e30:a48b with SMTP id z10-20020a170902708a00b001400e30a48bmr20503023plk.54.1635702201681; Sun, 31 Oct 2021 10:43:21 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id gf23sm11762381pjb.26.2021.10.31.10.43.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Oct 2021 10:43:21 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 6E822A24D; Sun, 31 Oct 2021 13:42:40 -0400 (EDT) In-Reply-To: X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qhIJfEy8; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::62b 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.io gmane.text.pandoc:29424 Archived-At: I can confirm that using pandoc.Str('') instead of pandoc.Str() works. Albert Krewinkel writes: > Can't test right now, but can you try to pass an empty string to pandoc.Str('')? > > Am 31. Oktober 2021 14:18:16 MEZ schrieb Philipp : >>Hello everyone, >> >>I'm experiencing a problem with a self-written Lua-filter after upgrading >>to 2.15. >> >>The filter ran (and still runs) fine with older versions of pandoc, but >>with 2.15 I get the following error: >> >>PandocLuaError "Error during function call:\n\tstring expected, got >>string\n\twhile retrieving function argument string\n\twhile retrieving >>arguments for function Str\nstack traceback:\n\t[C]: in field >>'Str'\n\tscripts/klausur.lua:11: in function >>\n\t[C]: in ?\n\t[C]: in field >>'walk_block'\n\tscripts/klausur.lua:8: in function 'processheader'" >> >>stack traceback: >> >>[C]: in field 'walk_block' >> >>scripts/klausur.lua:8: in function 'processheader' >>The corresponding Lua code looks like this (I hope the formatting is >>preserved): >> >> 7 function processheader(elem) >> 8 return pandoc.walk_block(elem, { >> 9 Str = function(elem) >>10 if string.match(elem.text, "%%%d+p%%") ~= nil then >>11 return pandoc.Str() >>12 end >>13 end >>14 }) >>15 end >> >>I'd be thankful for any suggestion what is going wrong here. >> >>Kind regards, >>Philipp >> >> >>-- >>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/7c1cf170-c5cb-4203-a4ba-36407f0ebfecn%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/DDB22D9A-22FC-48BB-B1D0-18B059FD92D7%40zeitkraut.de.