From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Brooksby Newsgroups: gmane.emacs.bugs Subject: bug#74785: 27.1; Fill-paragraph in RST mode does not respect line blocks Date: Wed, 11 Dec 2024 10:37:01 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29479"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 74785@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 11 11:38:24 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 1tLK6p-0007Tx-Pd for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 11:38:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLK6Y-0001GP-BR; Wed, 11 Dec 2024 05:38:06 -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 1tLK6U-0001Fn-NX for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 05:38: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 1tLK6U-00025I-Ey for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 05:38:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:Subject; bh=Z8I7noinjq0bTPQY94/dIcYIJ0RNGxk5TduCNxOkZJ0=; b=Aon9RrxuAMBk1FyoIdDmVEEiCkSkkmnNApmiZx4nIuKJtvGzWJW5dVrfltpQdL6D242aPgKCxisWvmORVF3rLIQPoXrgHHK5fYy60YNMVglk2LfvB31ufxy6V6z9Cn/xV+fdSHIpL0eOJ/kaLnLkJ8T7hZnNduSEnXDrHK+PkrSo+ks6dnOpk1YKq6J4gF3YDpF9LznTAMG5uwfKZl9vOM2MmX2sv0nX4kDBYBc3lC64tM5bnGr2SkrS8X7Vx91Tka1IZNoVMLXVk+mXDqXhmT8AQDkEwlqmtNb/N78ENsmzFrFS6vkDMsI8LYykM001SLDiXlDk82/5XdNKmbXpOA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLK6U-00056K-85 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 05:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Brooksby Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2024 10:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74785 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173391344919506 (code B ref -1); Wed, 11 Dec 2024 10:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Dec 2024 10:37:29 +0000 Original-Received: from localhost ([127.0.0.1]:33134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLK5w-00054V-F9 for submit@debbugs.gnu.org; Wed, 11 Dec 2024 05:37:29 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLK5s-000541-0N for submit@debbugs.gnu.org; Wed, 11 Dec 2024 05:37:28 -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 1tLK5q-00012M-63 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 05:37:22 -0500 Original-Received: from petrel.ravenbrook.com ([46.235.224.209] helo=mail-gateway.ravenbrook) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLK5n-00020d-Cy for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 05:37:21 -0500 Original-Received: from mail-gateway.ravenbrook (localhost [127.0.0.1]) by mail-gateway.ravenbrook (Proxmox) with ESMTP id D4E7C55C12 for ; Wed, 11 Dec 2024 10:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravenbrook.com; h=cc:content-transfer-encoding:content-type:content-type:date :from:from:message-id:mime-version:reply-to:subject:subject:to :to; s=pmg; bh=Z8I7noinjq0bTPQY94/dIcYIJ0RNGxk5TduCNxOkZJ0=; b=q db7fmPqlk0ZiJolhLjmYNNnh7l8FCCoph4DXR1MZF/NGLSd2+Ztn37kn04DANsNM 9N+EBuCLqShWw1UrsKew3UODI6DqAwUDY8CQcfD+jfTaWGagKSg3zGs1+asKceXP bafin9GRjTlkEYNxM/eEv0Gv9HHeZgoWpOiDt/RpwKJfLeCcVbYdazuYMAAFKE6r J0B5jEJ24+oHanvkK5eb5uLq522ETcLNI+s1llCRTGGUACvKZSqPmfer1me08+xL X3/Sdq1RF/ZIhFcaKU/fCI4cvCuQFej+3Rgw1yZUjzJec+hWDpe+q0fdHg/4SQPJ txuu0BdCgs1uqJMeMrNHw== Original-Received: from mx.ravenbrook.com (mx.ravenbrook [IPv6:fd42:d923:e021:7be6:216:3eff:fe75:c2cc]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-gateway.ravenbrook (Proxmox) with ESMTPS id 9F24355C0C for ; Wed, 11 Dec 2024 10:37:02 +0000 (UTC) Original-Received: from mx.ravenbrook ([fd42:d923:e021:7be6:216:3eff:fe75:c2cc] helo=[192.168.1.29]) by mx.ravenbrook.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLK5W-001KD9-Bx for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 10:37:02 +0000 Content-Language: en-GB, en-US Received-SPF: none client-ip=46.235.224.209; envelope-from=rb@ravenbrook.com; helo=mail-gateway.ravenbrook X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:296814 Archived-At: 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.) In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2024-09-17, modified by Debian built on lcy02-amd64-079 Windowing system distributor 'The X.Org Foundation', version 11.0.12201001 System Description: Ubuntu 22.04.5 LTS Recent messages: uncompressing rst.el.gz...done Note: file is write protected Mark set [3 times] Making completion list... delete-backward-char: Text is read-only Quit [2 times] Type C-x 1 to remove help window. Type "q" in help window to restore its previous buffer. You can run the command ‘info-emacs-bug’ with M-x inf-b RET Making completion list... Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --without-gsettings 'CFLAGS=-g -O2 -ffile-prefix-map=/build/emacs-vPr175/emacs-27.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: ReST Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Load-path shadows: /home/rb/.emacs.d/elpa/magit-20210117.2011/magit-section hides /home/rb/.emacs.d/elpa/magit-section-20241122.1431/magit-section /usr/share/emacs/site-lisp/llvm-14/emacs hides /usr/share/emacs/site-lisp/llvm-15/emacs /usr/share/emacs/site-lisp/llvm-14/tablegen-mode hides /usr/share/emacs/site-lisp/llvm-15/tablegen-mode /usr/share/emacs/site-lisp/llvm-14/llvm-mode hides /usr/share/emacs/site-lisp/llvm-15/llvm-mode /home/rb/.emacs.d/elpa/map-3.3.1/map hides /usr/share/emacs/27.1/lisp/emacs-lisp/map /home/rb/.emacs.d/elpa/seq-2.24/seq hides /usr/share/emacs/27.1/lisp/emacs-lisp/seq Features: (shadow sort mail-extr emacsbug sendmail magit-utils crm eieio-opt speedbar sb-image ezimage dframe apropos man jka-compr find-func misearch multi-isearch cl-extra help-fns radix-tree help-mode mule-util log-edit message rmc puny rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log flyspell ispell rst compile vc-git diff-mode easy-mmode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc vc vc-dispatcher dired-aux iso-transl dired dired-loaddefs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cus-edit cus-start cus-load wid-edit solarized-dark-theme solarized color dash lxd-tramp tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ansi-color ring parse-time iso8601 time-date ls-lisp format-spec todotxt-mode edmacro kmacro server finder-inf info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 445178 33251) (symbols 48 25380 2) (strings 32 133208 16553) (string-bytes 1 3430629) (vectors 16 36796) (vector-slots 8 838518 57172) (floats 8 299 280) (intervals 56 8211 530) (buffers 1000 36))