From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29281 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Paragraph with less indent converted to blockquote Date: Wed, 22 Sep 2021 13:12:49 -0700 Message-ID: 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: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29588"; mail-complaints-to="usenet@ciao.gmane.io" To: Milan Bracke , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBTU4V2FAMGQEOZRB5CI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Sep 22 22:13:04 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f55.google.com ([209.85.161.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mT8c4-0007Tl-Cl for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 22 Sep 2021 22:13:04 +0200 Original-Received: by mail-oo1-f55.google.com with SMTP id p15-20020a4a3c4f000000b002a96a40103asf2377607oof.15 for ; Wed, 22 Sep 2021 13:13:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632341583; cv=pass; d=google.com; s=arc-20160816; b=sBEPnYcZnomxjTivGj4AMeP8UynBl85X5eyyi3FAtF7ejXY+jDNTeAzem+4BDMrL3T zwblbYF8xC7HDRk+w5SEjaKN4bln0DFrfP9qQBNrazxvJXhsaJ78p3Jb/8VBIP+zJZhC mwl5AU1RwrkVlV9A+kGBFkXCqmRuHUIpBawD1yJtU51f9S/IxKmtAscQCdsIANCYVCiU 2xB+MUIKmCUVEQHei7geqTs5j4Jetn7MJgKt3/TcOGqCCTJcoJJ50517IHuawf5IqiqQ 7Un42/u2xk0MPlVyC/v/wZ+TwRWvasVO4XMqs/yrdCMJWCmh1m8jJKHGaKLI9tJYMV/Y VoaQ== 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:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=nMkCVKy9w/zQ1mGeJhCjFJ+FkWEC/SOEex3hDY4S06I=; b=pNNpR0sXMXxI4PT7xVHBzWBTdDILlmbSTWcFAr5bJ1PBKOCXbpzV12jSAiyaZvXtam BzkNHCz+X7PuuS+l14kVIDkYksz2Vhxn3WwnQHb8bqoxCf2854QqbgC9/6jmK+r/p3GI 5DLl9PQZ9nvLa3EqwR1RoikNuLmZ08V9vm4Vqcb0IYFhE0be/gKqYmSU/RU/2RoFRCVn HeV//SqqTCieQYkOBSM1DAT2++l5xcmlSXQXHsM7BNMZX9ThRt5PIbxoue00aQqKFyp8 BAmiQydcHoMdRTBZhXgaic+mvP9OUxteczvJ8Gy7RfDmgvkuMHI9YWwL+Ken9bGOsAKG cg0g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=k+7DbY0E; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 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:content-transfer-encoding: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=nMkCVKy9w/zQ1mGeJhCjFJ+FkWEC/SOEex3hDY4S06I=; b=NX9LLLkfaT3dErIOnMI0DLD2ixwLcU4EfUoOBYDp5d/1PSLAS8z+kQuwysjuhS6eHO Q+Bwn+gho0LgJ7X6DhIi5z+CdpJDpJnoPZrzb2Sxa8Qa3IYyd7ShP/E4Dr/HoRUeoyIG KCybLe4p3N09ZBGUA8lNF3WF7etkEbFiSHhVquiE59SumdDgXOGRjHGacmoqtHcQZirv 7/4/XxrS9ANcerf1S9jE0+YQ84hdK4W/qPGspfPe/bG+y6aOu7o5cnN2XP1+QEKyorl8 ufaAupX6xkM8LvzuO2NYWO9kAhPmntiBtdPNFeK48DF9j0G//VnIoE7d9vBzn4v1Qwxv X0Mg== 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:content-transfer-encoding :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=nMkCVKy9w/zQ1mGeJhCjFJ+FkWEC/SOEex3hDY4S06I=; b=hIKl3+s0YKHrtPQXemH7bAHHTC5s0yS6arEgUPaEIsGqLanv1GxJTWjScxMxhT6oEk 9vkoVepuOqNHmJU6VHSA5sqlJ2JMDU3Z4tL323JYNTDN/hLy+E5x21qlAZ9S5alzHMMR T+1gMeG3x4EzEff8RsfBiL1nLH/+uZVg15V84N7cyMbmwfvoXX9CcEpXmVgx1j37H2qY osY49WguljZ9qxTZxf5WdD5mf9U4LGdpIE/i+nA+P+aCPi8w2yo/D0Lo+LIsIlYbLu68 dEmPmcm9u9+C4WY1k1igq9VUQKXLm/Ypb0jR0GtJnCh20iSnBVYLyeo/7uv5UhLwvhaz Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532YUapXIaoGVIYTbVL7oHip6a8fLFD489M+MYaxuZhO8sXqCCqe utDDualV+FLVMGnNCq4/XN4= X-Google-Smtp-Source: ABdhPJySFn2xBdFp+gXHjhb7j4VqJ95coSb0zPz28sy6lkqIBFetWbigwKIBHJF2+ByxCqnu1FjSdQ== X-Received: by 2002:a9d:6156:: with SMTP id c22mr859425otk.383.1632341583336; Wed, 22 Sep 2021 13:13:03 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:f02:: with SMTP id 2ls1008351oip.8.gmail; Wed, 22 Sep 2021 13:13:01 -0700 (PDT) X-Received: by 2002:a05:6808:130e:: with SMTP id y14mr821178oiv.29.1632341581926; Wed, 22 Sep 2021 13:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632341581; cv=none; d=google.com; s=arc-20160816; b=NgRYXak6AzTIjFw7u9uWI64nzRLueTaYnEb5kgdu8iycfsYlMpFdlvKmjQ3UJbGccx 16jT5arOcBkJpC+4gxP/QM4ImaNe9EFiJ74ijVo7jy7hRxANdddsmAfCY0NE+om7/0If YIKvthq86xGHxJ09L5bBXrYWPJ4x6CYoJ9axRIdOqCSk+h+gYH4Q4W+3cVJCA4b09l+8 8AmqD4t7975HhglnoyFeeYrk9rroAvjytY1Jnp8XXG25+Jz7P+KwSLP/BcI/nW/2pegW V7vNtJ637y3hGbq6I58bj5DTNYIC14wwd4+5oTEFfDIEn/xk1a66xVTbB5VtoYuAzfV7 /7HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=4v1NgAkxn6bdlxkPuIKTfFXaggLBe5Mx6rzOuJ97AGA=; b=q+l5ZQ/3LOAUi9oe98lLMrFIH+j7GJ/Axh8SZvKp20td/9qDd1FJfLwrE7pQv9h4dF gV3kx8p6IgOy1d64MmpwfExq08hKmtk21nK4K+yzEyeE2D+POmhoYeLd33hqYI8bTlSy bE2tCx0pqipZNvQDX21fQtTpkMlyyVi1HftMo+MjkY9u7NagP75BhXIM0pf6FclrN3ov ZPGCe3E2j5xNT2sUl+jvFjJbRJHU19dB1ki6XjC7k/LZU5wRXFLNJoHQYw7ydE509MTG CafP2sY2EAA9P7jnwCjmpIaR+l+ACbRPT87RjL4dzQTopVqCKe42HUAj8aRAkD3PZqUp tmQA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=k+7DbY0E; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com. [2607:f8b0:4864:20::532]) by gmr-mx.google.com with ESMTPS id m12si494995ooj.1.2021.09.22.13.13.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Sep 2021 13:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 as permitted sender) client-ip=2607:f8b0:4864:20::532; Original-Received: by mail-pg1-x532.google.com with SMTP id r2so3923627pgl.10 for ; Wed, 22 Sep 2021 13:13:01 -0700 (PDT) X-Received: by 2002:a62:4e44:0:b0:443:7f64:6a09 with SMTP id c65-20020a624e44000000b004437f646a09mr852101pfb.54.1632341581140; Wed, 22 Sep 2021 13:13:01 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id j23sm3415671pfr.208.2021.09.22.13.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 13:13:00 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id C0D96A1A8; Wed, 22 Sep 2021 16:12:49 -0400 (EDT) In-Reply-To: <797266ca-1c30-4959-9aac-712bc9f57e08n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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=k+7DbY0E; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::532 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:29281 Archived-At: 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 (a= s=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 manuall= y=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 m= ore=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=A9cri= t : >> > 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 conversion. A=20 >> blockquote >> > is created when indentation of a paragraph is less than the indentatio= n=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 look= s >> > 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 mor= e >> > 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 Gro= ups >> > "pandoc-discuss" group. >> > To unsubscribe from this group and stop receiving emails from it, 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.co= m. >> >=20 >> > References: >> >=20 >> > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org >> > [2]=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 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/msgi= d/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/m2ilys2wu6.fsf%40Johns-Air.hsd1.ca.comcast.net.