bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74785: 27.1; Fill-paragraph in RST mode does not respect line blocks


From: Eli Zaretskii
Subject: bug#74785: 27.1; Fill-paragraph in RST mode does not respect line blocks
Date: Sat, 14 Dec 2024 12:22:46 +0200

> Date: Wed, 11 Dec 2024 10:37:01 +0000
> From: Richard Brooksby <rb@ravenbrook.com>
> 
> 
> 
> Fill-paragraph (M-Q) in a reStructuredText document that is formatted
> using "Line Blocks"
> <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#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 <https://debbugs.gnu.org/cgi/pkgreport.cgi?package=emacs>
> for a similar report.  Apologies if I was not thorough enough.)

Stefan and Stefan, any ideas or suggestions?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]