From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29283 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: Thu, 23 Sep 2021 06:33:44 -0700 (PDT) Message-ID: <3824cc94-2630-4e09-8cf4-a1b5d342dfdan@googlegroups.com> References: <0517abd5-db41-492f-b1a7-5af186b6420dn@googlegroups.com> <797266ca-1c30-4959-9aac-712bc9f57e08n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1452_1440337795.1632404024599" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10005"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDM4NA6G6UGRBOMEWKFAMGQELAMDRWQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 23 15:33:48 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f188.google.com ([209.85.167.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mTOrE-0002PN-B8 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 23 Sep 2021 15:33:48 +0200 Original-Received: by mail-oi1-f188.google.com with SMTP id 17-20020aca1111000000b0027368cbf687sf3546733oir.23 for ; Thu, 23 Sep 2021 06:33:48 -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=t6HNuOEQfnKvzfVEkTIae5WQXANw7HvVzbntuzpr0D8=; b=Ej7K4dst9HQEkwSrp4lROHWft2XJzb/x22JbEGaOtC0VC+EGghzbEJr17keWZ4fsh4 K+u/xdOytV6z3IZgyJt+5oVorIkMtgW7/Coj48CB+sJ/OuslClqdnmqktF7hjpFLkifL io9xVJNw2SH3sbJ3OZEu2U+e4yFuey4jcdUNfiwO20nt0T3qi3FgnaS2CLGSdEcVUqQU fmn2Vu90li+evnoUFv/IDqotKU3p+GcOmtenZbBJ6i3zjNe9mYMwxfkND9OKTyqmv/uv TCJ6xpkec9d6+rNSkNEBMcX6U/SusG3FY/MiViMyXUCE4wjtQ7L3mEdKhIUUsJNFkBwL Ej4A== 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=t6HNuOEQfnKvzfVEkTIae5WQXANw7HvVzbntuzpr0D8=; b=mfMrbk97fWO0NZcaFnSCbBNFzjkE/0jA21rN9r0em5IJ8VrTRyCB8B8v4nYVPvMOZx crb0T/wgFgZWWn29cxuDazGyZJr7tDqUGMf3wnv/ZYwn7bY9Zk+WBeshrNTb0L0FlyJh OqHnzlI9xDK5afhpntmdBpEAZY4hNJY14o18zo/nx4dBgvCkPpC+Ae1+qz23p7IaRvMA sEwcqSvt/hZjjkx03V4LD+kC8HdE1Dqf/Q1AkDjNR1f5IQQyVs/0m0K6aTVC37P3KCgd 7g/wTdXqjVsvLvV/KuZSgHNkOilln6wm8sCVXI2crtP4buzsFbl14YCc3kD1LsvLyWpC DJdg== 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=t6HNuOEQfnKvzfVEkTIae5WQXANw7HvVzbntuzpr0D8=; b=SiBY90+bue+IeUbroxPwaceauswysFABpEd+JS09v2t9HaSLR4lwPYvF1fGx0sv7VQ kUjjGL4M5v3aqcnWwfSFig6PBlByzttrSDlrUaBAzHCE7t3KHFFhMGgkS6RoAjem1xEV SZ8m5hn9/eTI3po2B1yV/wNhJV+zaQXqTMFEPU5/jObOhqxT/1obKXL3FFs8q6j5hKkT zVCkO4UMFDRA6JRurpnRSPWdjtBtD+M1k27arvEZfnaYXZRGX4YyYgKWWx5F75z7W6Tb X36gW84Keob9tpKYlUvOOSirxsnqSrMVdw6elOSyGSQfE7KkEtpBJM99VXgkWD3+AsEt Ur6A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530cP3ut97UTSlSY8GksOdOzQ3Gzz6A8By3qsVHHKbfU213a8YFm gjSyXpBERqXfwVitYHmME1g= X-Google-Smtp-Source: ABdhPJxmj4XAfQzTXNC/yJSKi4q+dt0h8eKEh8YduhdFZZCHTQDzm6H3WaJ5aqNOleylmUSHEVp1EQ== X-Received: by 2002:aca:2415:: with SMTP id n21mr12014012oic.27.1632404026716; Thu, 23 Sep 2021 06:33:46 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:313:: with SMTP id 19ls1727077otv.0.gmail; Thu, 23 Sep 2021 06:33:45 -0700 (PDT) X-Received: by 2002:a05:6830:1513:: with SMTP id k19mr4471592otp.41.1632404025240; Thu, 23 Sep 2021 06:33:45 -0700 (PDT) In-Reply-To: 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:29283 Archived-At: ------=_Part_1452_1440337795.1632404024599 Content-Type: multipart/alternative; boundary="----=_Part_1453_1025862659.1632404024599" ------=_Part_1453_1025862659.1632404024599 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks! I'll fix it. On Wednesday, 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 writes: > > > Thanks. But I meant confirming whether this should be considered a bug= =20 > (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 set=20 > manually=20 > >> (not by adding spaces at the beginning, but by modifying the paragraph= =20 > >> properties) are parsed as BlockQuote. The fact that the indentation is= =20 > 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=A9c= rit : > >> > Hi, > >> >=20 > >> > It looks like a bug to me. Could anyone confirm, please? Then I'll= =20 > fix=20 > >> it. > >> >=20 > >> > Best, > >> > Milan > >> >=20 > >> > On Thursday, September 9, 2021 at 2:15:39 PM UTC+2=20 > rlav...-QkLmr2fm4izR7s880joybQ@public.gmane.org=20 > >> wrote: > >> >=20 > >> >=20 > >> > Hello, > >> >=20 > >> > I noticed a strange behavior from the docx to HTML conversion. A=20 > >> blockquote > >> > is created when indentation of a paragraph is less than the=20 > 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 them is less > >> > indented, which causes Pandoc to transform it to a blockquote. It=20 > looks > >> > weird because the paragraph is less indented in Word and it looks=20 > like=20 > >> the > >> > intention was to transform paragraphs to blockquotes when they are= =20 > more > >> > indented. So is the behavior we see here intended or a bug? > >> >=20 > >> > Thanks > >> > R=C3=A9my > >> >=20 > >> > -- > >> > You received this message because you are subscribed to the Google= =20 > Groups > >> > "pandoc-discuss" group. > >> > To unsubscribe from this group and stop receiving emails from it,=20 > send=20 > >> an email > >> > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > To view this discussion on the web visit [2] > >> https://groups.google.com/d/msgid/ > >> > pandoc-discuss/f0cb7b1b-f844-4f0a-bb62-8193c90fa8fbn% > 40googlegroups.com. > >> >=20 > >> > References: > >> >=20 > >> > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > >> > [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 > > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > 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 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/3824cc94-2630-4e09-8cf4-a1b5d342dfdan%40googlegroups.com. ------=_Part_1453_1025862659.1632404024599 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks! I'll fix it.

On Wednesday, September 22, 2021 at 10:13:03 PM UTC+2 Jo= hn 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....@g= mail.com> 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-d= iscus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>> > 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:pan= doc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>> > [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..= .@googlegroups.com.
> 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/3824cc94-2630-4e09-8cf4-a1b5d342dfdan%40googlegroups.= com.
------=_Part_1453_1025862659.1632404024599-- ------=_Part_1452_1440337795.1632404024599--