From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29333 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Bracke Newsgroups: gmane.text.pandoc Subject: Re: Paragraph with less indent converted to blockquote Date: Tue, 5 Oct 2021 02:02:52 -0700 (PDT) Message-ID: <61b1dd6c-0212-451a-93d3-524307cd139cn@googlegroups.com> References: <0517abd5-db41-492f-b1a7-5af186b6420dn@googlegroups.com> <797266ca-1c30-4959-9aac-712bc9f57e08n@googlegroups.com> <3824cc94-2630-4e09-8cf4-a1b5d342dfdan@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_832_240649337.1633424572854" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12315"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDM4NA6G6UGRBPNJ6CFAMGQELPFA7RY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Oct 05 11:02:56 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f191.google.com ([209.85.167.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mXgLg-0002yD-1d for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 05 Oct 2021 11:02:56 +0200 Original-Received: by mail-oi1-f191.google.com with SMTP id b11-20020aca220b000000b0027645eae849sf10388140oic.12 for ; Tue, 05 Oct 2021 02:02:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; 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=hPllxo2OKGXTXcnIRElESq7DM63iLqD1we7lmptd9hA=; b=s0RPpaJlEzHch1qv8PWA4xg+rsZJS1Nl5BJ0lABL+Y/9kRqauSf18t9sLkUWkvIy1Y aAB8eMX6nqwiWTrfZkBwedL6UphO1uu0QiyiaYsSAtUzDnk917HARVsqI0LPcM4lSBzo uOgpFrEm2MRVQX0Ksz1ps10w6oVfFux75TK1dmriglw/FPYZK5cKZLnrIrr8vNjRwth8 1kKgztpQeBvogIy+5Q/sicra0EX2eeojJrstlRqjE/zXwhJf2y3hqpCOajmAeLz4PueQ 1iRns5G0MU0Ospy2tbQcCezS5TeLEna+VD3O39TK0BvRvLwNiWuhxaspfWJvSEVem84e 5S4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=hPllxo2OKGXTXcnIRElESq7DM63iLqD1we7lmptd9hA=; b=a1vQUnZwWIwLSq4QEiTh5fyGSvaOlPYY8pNL+PiEHJuALRyMsqvsYpQFFxdYK17ACN +kdNwE5WKojz+JcuUe7TVJEVZ96daf8Qmt8yxbDe2dJBKqpOaR2QiCUsGnfw/Sr5lb6B vmcRZeb5g35QGBN1Gv1XgFn5IqGsnP65J/DpqhIbqKlyJPhNs0n3h6W8lZWQvN134vc9 JMqthjZE1jJ7qlzKUr+rV3Ij/B56drXjjkW/Yz2GZjyupCv6xcYznniw7lY1a+OTwiNx wU03mQXmqoCr0/6/RShEqmGH1ooEuUUNdYaOUyLL+2X4kub3sG5eF9m2fe/0fSVeZpEu l0Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=hPllxo2OKGXTXcnIRElESq7DM63iLqD1we7lmptd9hA=; b=SnJiFSkx1Pb8Ha2i3c0gQ98fLJqYgns+0SX+n5B1+nxZMV+t63qrRE94yv43yX0w98 01Lysz7ja/7wr01tSDsjv3PvJR+wgC3JCuB1t9CqpfvfZjOUuuwZmhsoXOxlk0YMUinX 5tgTGd22JKCoY3j3NMbcbC+Vx3ic5Iiqh9EuqhTj++3Le3Wr7a+8gvlQNUIi1My8dLtr KFF0IvcsuCQ60R8fDwNjtsl0nQWMLYsXrpRL2kwB6HR3TtD4vcL9A7qZkx7MMyITZ5k3 PbGUH2NQd6ENnbizt/ZsDsvLcx/Ubc77POMwt6qSs2XaYt2fubnf1Vw66DukrDAy9WYH NOZw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531noG2E2GXFB3ik9oHFw8LKzGPsKYeP+jZg5A+y+gnx4XCP7JAa 7e4hvgKj8A2Dn1LzTxuoYsI= X-Google-Smtp-Source: ABdhPJxd51AqkPYAla6T0aaz1K/A5ig7Pdc09mNUAXFtmmfGJ0SNRM8kt11wp2zfO97WioczVRCfMw== X-Received: by 2002:a4a:ea84:: with SMTP id r4mr12314836ooh.92.1633424575017; Tue, 05 Oct 2021 02:02:55 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:7257:: with SMTP id a23ls2440060otk.1.gmail; Tue, 05 Oct 2021 02:02:53 -0700 (PDT) X-Received: by 2002:a9d:6396:: with SMTP id w22mr13038966otk.26.1633424573449; Tue, 05 Oct 2021 02:02:53 -0700 (PDT) In-Reply-To: <3824cc94-2630-4e09-8cf4-a1b5d342dfdan-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: milan.bracke-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:29333 Archived-At: ------=_Part_832_240649337.1633424572854 Content-Type: multipart/alternative; boundary="----=_Part_833_1377390190.1633424572854" ------=_Part_833_1377390190.1633424572854 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I made the pull request: https://github.com/jgm/pandoc/pull/7606 On Thursday, September 23, 2021 at 3:33:44 PM UTC+2 Milan Bracke wrote: > Thanks! I'll fix it. > > On Wednesday, September 22, 2021 at 10:13:03 PM UTC+2 John MacFarlane=20 > wrote: > >> >> I haven't had a chance to look at the code, but it may be that=20 >> it only looks at hard-coded indentation in making this=20 >> determination, ignoring the styles. If that's right, then=20 >> I agree that it would be nicer behavior if the style's=20 >> indentation were taken into account. At the moment I can't=20 >> see any drawbacks to this, so I'd say go ahead and try to=20 >> make it work!=20 >> >> Milan Bracke writes:=20 >> >> > Thanks. But I meant confirming whether this should be considered a bug= =20 >> (as=20 >> > opposed to confirming whether it happens).=20 >> >=20 >> > On Tuesday, September 21, 2021 at 3:43:01 PM UTC+2 Bastien Dumont=20 >> wrote:=20 >> >=20 >> >> I confirm. It seems that all paragraphs whose indentation is set=20 >> manually=20 >> >> (not by adding spaces at the beginning, but by modifying the paragrap= h=20 >> >> properties) are parsed as BlockQuote. The fact that the indentation i= s=20 >> more=20 >> >> are less than in the parent style does not matter.=20 >> >>=20 >> >>=20 >> >> Le Tuesday 21 September 2021 =C3=A0 04:48:04AM, Milan Bracke a =C3=A9= crit :=20 >> >> > Hi,=20 >> >> >=20 >> >> > It looks like a bug to me. Could anyone confirm, please? Then I'll= =20 >> fix=20 >> >> it.=20 >> >> >=20 >> >> > Best,=20 >> >> > Milan=20 >> >> >=20 >> >> > On Thursday, September 9, 2021 at 2:15:39 PM UTC+2=20 >> rlav...-QkLmr2fm4izR7s880joybQ@public.gmane.org=20 >> >> wrote:=20 >> >> >=20 >> >> >=20 >> >> > Hello,=20 >> >> >=20 >> >> > I noticed a strange behavior from the docx to HTML conversion. A=20 >> >> blockquote=20 >> >> > is created when indentation of a paragraph is less than the=20 >> indentation=20 >> >> of=20 >> >> > the named style applied to it. I have attached an example with two= =20 >> >> > paragraphs that have the List Paragraph style. One of them is less= =20 >> >> > indented, which causes Pandoc to transform it to a blockquote. It= =20 >> looks=20 >> >> > weird because the paragraph is less indented in Word and it looks= =20 >> like=20 >> >> the=20 >> >> > intention was to transform paragraphs to blockquotes when they are= =20 >> more=20 >> >> > indented. So is the behavior we see here intended or a bug?=20 >> >> >=20 >> >> > Thanks=20 >> >> > R=C3=A9my=20 >> >> >=20 >> >> > --=20 >> >> > You received this message because you are subscribed to the Google= =20 >> Groups=20 >> >> > "pandoc-discuss" group.=20 >> >> > To unsubscribe from this group and stop receiving emails from it,= =20 >> send=20 >> >> an email=20 >> >> > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> >> > To view this discussion on the web visit [2]=20 >> >> https://groups.google.com/d/msgid/=20 >> >> > pandoc-discuss/f0cb7b1b-f844-4f0a-bb62-8193c90fa8fbn% >> 40googlegroups.com.=20 >> >> >=20 >> >> > References:=20 >> >> >=20 >> >> > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 >> >> > [2]=20 >> >>=20 >> https://groups.google.com/d/msgid/pandoc-discuss/f0cb7b1b-f844-4f0a-bb62= -8193c90fa8fbn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter=20 >> >>=20 >> >>=20 >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group.=20 >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/797266ca-1c30-4959-9aac= -712bc9f57e08n%40googlegroups.com.=20 >> >> > --=20 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 e= mail 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/61b1dd6c-0212-451a-93d3-524307cd139cn%40googlegroups.com. ------=_Part_833_1377390190.1633424572854 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I made the pull request: https://github.com/jgm/pandoc/pull/7606

On Thursday,= September 23, 2021 at 3:33:44 PM UTC+2 Milan Bracke wrote:
Thanks! I'll fix it.
=
On We= dnesday, September 22, 2021 at 10:13:03 PM UTC+2 John MacFarlane wrote:
=

I haven't had a chance to look at the code, but it may be that
it only looks at hard-coded indentation in making this
determination, ignoring the styles. If that's right, then
I agree that it would be nicer behavior if the style's
indentation were taken into account. At the moment I can't
see any drawbacks to this, so I'd say go ahead and try to
make it work!

Milan Bracke <milan....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes= :

> Thanks. But I meant confirming whether this should be considered a= bug (as=20
> opposed to confirming whether it happens).
>
> On Tuesday, September 21, 2021 at 3:43:01 PM UTC+2 Bastien Dumont = wrote:
>
>> I confirm. It seems that all paragraphs whose indentation is s= et manually=20
>> (not by adding spaces at the beginning, but by modifying the p= aragraph=20
>> properties) are parsed as BlockQuote. The fact that the indent= ation is more=20
>> are less than in the parent style does not matter.
>>
>>
>> Le Tuesday 21 September 2021 =C3=A0 04:48:04AM, Milan Bracke a= =C3=A9crit :
>> > Hi,
>> >=20
>> > It looks like a bug to me. Could anyone confirm, please? = Then I'll fix=20
>> it.
>> >=20
>> > Best,
>> > Milan
>> >=20
>> > On Thursday, September 9, 2021 at 2:15:39 PM UTC+2 rlav...-QkLmr2fm4izR7s880joybQ@public.gmane.org=20
>> wrote:
>> >=20
>> >=20
>> > Hello,
>> >=20
>> > I noticed a strange behavior from the docx to HTML conver= sion. A=20
>> blockquote
>> > is created when indentation of a paragraph is less than t= he indentation=20
>> of
>> > the named style applied to it. I have attached an example= with two
>> > paragraphs that have the List Paragraph style. One of the= m is less
>> > indented, which causes Pandoc to transform it to a blockq= uote. It looks
>> > weird because the paragraph is less indented in Word and = it looks like=20
>> the
>> > intention was to transform paragraphs to blockquotes when= they are more
>> > indented. So is the behavior we see here intended or a bu= g?
>> >=20
>> > Thanks
>> > R=C3=A9my
>> >=20
>> > --
>> > You received this message because you are subscribed to t= he Google Groups
>> > "pandoc-discuss" group.
>> > To unsubscribe from this group and stop receiving emails = from it, send=20
>> an email
>> > to [1]pandoc-discus...@googlegroups.c= om.
>> > To view this discussion on the web visit [2]
>> https://g= roups.google.com/d/msgid/
>> > pandoc-discuss/f0cb7b1b-f844-4f0a-bb62-8193c90fa8fbn%40googlegroups.com.
>> >=20
>> > References:
>> >=20
>> > [1] mailto:pandoc-discus...@googlegro= ups.com
>> > [2]=20
>> https://= groups.google.com/d/msgid/pandoc-discuss/f0cb7b1b-f844-4f0a-bb62-8193c90fa8= fbn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter
>>
>>
>
> --=20
> 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-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/7972= 66ca-1c30-4959-9aac-712bc9f57e08n%40googlegroups.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://groups.google.com/d= /msgid/pandoc-discuss/61b1dd6c-0212-451a-93d3-524307cd139cn%40googlegroups.= com.
------=_Part_833_1377390190.1633424572854-- ------=_Part_832_240649337.1633424572854--