From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/27144 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: EBkysko Newsgroups: gmane.text.pandoc Subject: Re: [SOCIAL]Re: How to indent a block when exporting to reStructuredText Date: Fri, 4 Dec 2020 06:50:55 -0800 (PST) Message-ID: References: <875z5n7rsg.fsf@example.com> <87eekbjl2a.fsf@example.com> <877dq2iq4d.fsf@example.com> <871rg8fqo3.fsf@example.com> <0d1533ca-8cf8-4a50-8318-a770eaaf2d31n@googlegroups.com> <87360oduiq.fsf@example.com> <87k0tzci6s.fsf@example.com> <874kl2dca6.fsf@example.com> <7b398756-0b85-490b-b05e-8fd4fcaaecd5n@googlegroups.com> <6221eae9-b70a-4f53-b512-7655c2ac6858n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_398_1907405475.1607093455337" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31520"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDW4B3GJ2UFBBUEZVH7AKGQESBRLPGQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Dec 04 15:51:00 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1klCQF-00082W-41 for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 04 Dec 2020 15:50:59 +0100 Original-Received: by mail-ot1-f64.google.com with SMTP id f7sf2856836oti.1 for ; Fri, 04 Dec 2020 06:50:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=HLfVXlcq5aNN8JaqotlVQzuzpLFUk/SDcX4OizDhfu0=; b=T5DKQOWojuni5mPuAKWJXiwPLC6W1wncXV0ZWpBhBMyKEgOdBeb4DzTMtelwpp6Qnx YQ0ynMQjf2/d7ezpneyNRDM3PJx21zbriBWPri3ADnZvOJCoubd1m8vAgDEOHOlnjyzS fdPLav8j1+nlEzr3PqArLFUAZhtqWdtdZSb11sJq5Y/j45yycYhhTA/37Wriao3UrpzH eGk2oFG07iRcH4MPSis5A+rLMUFa3oKALv1JGLOjATNyBxQoeg8S4ZLGIkkhiBBAWYrR iBRftrf1HmZsN8d25TodgQRkofTWk45cgUp1h0YLuRN+aL31i3WtC12k+jQYEvGnS3HC GK3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=HLfVXlcq5aNN8JaqotlVQzuzpLFUk/SDcX4OizDhfu0=; b=LfQ3rSFQzY0I8K12YWxxTEpNisCjUuTnCPFJ+of7IB+wpxApWFCSvy/6QAcuzoDgSG EXS2dGt9TJgrHr8z6E60If//Oy3bAJsJeK6toeNFFZ7buLbPaWntzzTD06T1my8A2Etr tmwCEHIcfn6mYcDfPShdQEwdGqru6vbGSB/2tYk4B3nxnAXf3BxKFTZXzXK+x3pmKbYw p9OnpgpoxaznhPlAZZz7Es14ypOwe27qL3IfsaS9kNCrUtXTPXgt9vsv+3QzzrgCX46J 0Ns2UN/292wPkq0yKrPa7H+aruuvVfMMNZ6yM2eoOLiEc8wHGYw/AC2rwcwjMWPCG7qM F7Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=HLfVXlcq5aNN8JaqotlVQzuzpLFUk/SDcX4OizDhfu0=; b=d92IrLK9RKSj/OMcB6ERX9YvrxlF1qucG/OpF26AGAF6sOOcplTLhuTnktuLL5Tn57 FZhm1st+Vc8FqOE4uBiImwKzwaP188ATH8qKUkYF08OnMkC9TBiFBCLkYQKw2V0T8t5J jxhSfLOKRXXREqAZWq5D6NQ39hHXYb7NH/SHJOlk/gnqGdA3p0AHDO+tNNI2CUS0vSdu Yf1kmz2/QccnyrFiWfMJwACo8XH3knCBihFrAE3VjbrxntUoEqt9cGe4Gou2vMg+JVtf 4JeebXYp0UQPs9OXTYG0ultykuQZdQeVGwlmmZVqvgUvxIQpbxWx4HxLze3tPvELQrlZ yFzw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM53213TbW4IuW+IAUXuACDZY8kNIjBKWlkJwae7AWFEPkblIlTLzl Y1X9LHzF8sQoP0XfyRw/bng= X-Google-Smtp-Source: ABdhPJwYfZL6ZOuJFoL5iyTT2SN08Fg9WY9q/1nHMeaC6kxZ2YNFbXEiJm3QN+I0rU6kfzd0kcU05Q== X-Received: by 2002:aca:4fc7:: with SMTP id d190mr3557330oib.13.1607093458092; Fri, 04 Dec 2020 06:50:58 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1f1b:: with SMTP id u27ls2453649otg.5.gmail; Fri, 04 Dec 2020 06:50:56 -0800 (PST) X-Received: by 2002:a05:6830:1d8f:: with SMTP id y15mr3918294oti.332.1607093456069; Fri, 04 Dec 2020 06:50:56 -0800 (PST) In-Reply-To: X-Original-Sender: ebkysko-Re5JQEeQqe8AvxtiuMwx3w@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:27144 Archived-At: ------=_Part_398_1907405475.1607093455337 Content-Type: multipart/alternative; boundary="----=_Part_399_665309085.1607093455337" ------=_Part_399_665309085.1607093455337 Content-Type: text/plain; charset="UTF-8" @BP: works with a few corrections: - in is_str_match: `el.content[1]` should be `el.content[pos]` - in is_str_match: `pos = pos or #el.content` should be moved before the `if 'Str'...` - in collect_notes: `while i < #old` should be `while i <= #old` ('` could be in last para) - assert args should be within parenthesis On Friday, December 4, 2020 at 4:29:03 AM UTC-5 BP wrote: > It works for nested notes.... > -- 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/ac0cbc5c-8107-456e-8994-dc89619078d2n%40googlegroups.com. ------=_Part_399_665309085.1607093455337 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
@BP: works with a few corrections:

- in=20 is_str_match: `el.content[1]` should be `el.content[pos]`
- in=20 is_str_match: `pos =3D pos or #el.content` should be moved before the `if '= Str'...`
- in=20 collect_notes: `while i < #old` should be `while i <=3D #old` ('</= note>` could be in last para)
- assert args should be within p= arenthesis


On Friday, December 4, 2020 at 4:2= 9:03 AM UTC-5 BP wrote:
It works fo= r nested notes....

--
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/pandoc-discuss/ac0cbc5c-8107-456e-8994-dc89619078d2n%40googlegroups.= com.
------=_Part_399_665309085.1607093455337-- ------=_Part_398_1907405475.1607093455337--