From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Merten Newsgroups: gmane.emacs.bugs Subject: bug#74785: 27.1; Fill-paragraph in RST mode does not respect line blocks Date: Mon, 16 Dec 2024 23:05:11 +0100 Message-ID: <376758.1734386711@eskebo> References: <86msgyva15.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , 74785@debbugs.gnu.org, Richard Brooksby To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 16 23:06:21 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tNJEL-0007oa-8f for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Dec 2024 23:06:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNJE5-0003O2-1o; Mon, 16 Dec 2024 17:06:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tNJE2-0003No-RK for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 17:06:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tNJE2-00084F-BU for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 17:06:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:MIME-Version:References:In-reply-to:From:To:Subject; bh=jOsx09HxM2ZschwUeaaan9FAeC9ndXeruTz836gpqdU=; b=c0dRAeNOh2sQ7/7Xrh/wWVggmWnuPiEX/LEWoN74HbnXmmvSeAdHXtl9iCVZG8kx0ata2Bo+rsXnBtVRV1BE4cEajmrN5G3kR/8HxKaofT2OdXws1pVHn5NKRRxLmUuJ+j8yct1GN+zpo5JwFuC1m91nAID1YU7zPgE+Qv4/GoxrEN2X6by3H3pzYPQNhYXvgYVLSzPXsw/ih20QI1gJ1K+jAGlkx/nICoBFKdBbbH2ZJql1sbuODE7VXuZjch348MfkmwmA+OGa7h5IekpQR2qm1MiUp6gcv6JheTdO8xG7eZYyf/jHOzu3PKAsNIYpRb5n0Xy2++RcULP/nrAJ0g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tNJE2-0004hy-5x for bug-gnu-emacs@gnu.org; Mon, 16 Dec 2024 17:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Merten Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Dec 2024 22:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74785 X-GNU-PR-Package: emacs Original-Received: via spool by 74785-submit@debbugs.gnu.org id=B74785.173438673818060 (code B ref 74785); Mon, 16 Dec 2024 22:06:02 +0000 Original-Received: (at 74785) by debbugs.gnu.org; 16 Dec 2024 22:05:38 +0000 Original-Received: from localhost ([127.0.0.1]:56589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNJDd-0004hC-Gl for submit@debbugs.gnu.org; Mon, 16 Dec 2024 17:05:37 -0500 Original-Received: from mout.kundenserver.de ([217.72.192.75]:52131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tNJDa-0004gw-KY for 74785@debbugs.gnu.org; Mon, 16 Dec 2024 17:05:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=merten-home.de; s=s1-ionos; t=1734386712; x=1734991512; i=stefan@merten-home.de; bh=jOsx09HxM2ZschwUeaaan9FAeC9ndXeruTz836gpqdU=; h=X-UI-Sender-Class:From:To:cc:Subject:In-reply-to:References: MIME-Version:Content-Type:Content-Transfer-Encoding:Date: Message-ID:cc:content-transfer-encoding:content-type:date:from: message-id:mime-version:reply-to:subject:to; b=w0O5U+N0bWV1MYt/NN67ZkDjF6UC5m2L5Gv0pqWPC2qIzrR2LkZNEMNaK9f7deCA ZlwWpdMBhK7kG3r9v7pKPVvLPK23SYQSEPN0D8GY15LQ3uYmKqHC6oGGVpz7ne4JY sj+Vf24PoaICx2diUbTKOqHJ88W4tV83KTcBtGNQ5Kg0EY2TRoDFkFj68KLsBgqFI NLp+w/BHF79Vhm/yXrPoflIOFSm5AU0hjXCoSHkm2UTdkK53lVc1id2klgJDphJ04 QSPtY5vuZHbxEPKked9UtmPPGp3HaTt5QLHR83IIgDRsgcfSZoYeSuf7bjogUxIX4 AGn9ZJi4RW8Y8b9UpA== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Original-Received: from eskebo.homelinux.merten-home.de ([93.207.75.55]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MfHxt-1u3p5v332h-00pySD; Mon, 16 Dec 2024 23:05:12 +0100 Original-Received: by eskebo.homelinux.merten-home.de (Postfix, from userid 1000) id 43B7FC0243; Mon, 16 Dec 2024 23:05:11 +0100 (CET) In-reply-to: <86msgyva15.fsf@gnu.org> Comments: In-reply-to Eli Zaretskii message dated "Sat, 14 Dec 2024 12:22:46 +0200." X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 26.3 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Txty2X8zkj1YfrR5unrCmNKjXAfmbmsPRz9w+YM0vRPyYr6rdjBZMw0e5dg04mwT9v6X X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297235 Archived-At: Hi Eli! 2 days ago Eli Zaretskii wrote: >> Date: Wed, 11 Dec 2024 10:37:01 +0000 >> From: Richard Brooksby >> = >> = >> = >> Fill-paragraph (M-Q) in a reStructuredText document that is formatted >> using "Line Blocks" >> >> such as: >> = >> | In Xanadu did Kubla Khan >> | A stately pleasure-dome decree: >> | Where Alph, the sacred river, ran >> | Through caverns measureless to man >> | Down to a sunless sea. >> = >> results in this: >> = >> | In Xanadu did Kubla Khan | A stately pleasure-dome decree: | Where >> Alph, the sacred river, ran | Through caverns measureless to man | >> Down to a sunless sea. >> = >> but in this case it should leave the line breaks intact. The code >> should probably treat the vertical bars something like list bullets, >> since continuation lines are possible, e.g. >> = >> | This is the all the first line >> of output even though it's two lines >> of input. >> | This is second line in the output. >> | And this is the third. >> = >> (I searched >> for a similar report. Apologies if I was not thorough enough.) > = > Stefan and Stefan, any ideas or suggestions? Richard is right: Filling should consider line blocks. OTOH line blocks are really a rarely used feature I guess, so it doesn't hurt much. I'll look deeper into the code. But don't hold your breath ;-) . Regards Stefan