Feature request: keep leading line prefixes separate when running the Paragraph command

20 views
Skip to first unread message

John Gabriele

unread,
May 31, 2012, 5:11:05 PM5/31/12
to nicee...@googlegroups.com
When I've got multiple lines that look like this:

~~~
# Lorem ipsum dolor sit amet, consectetur
# adipisicing elit, sed do eiusmod
# tempor incididunt ut labore et dolore magna aliqua.
~~~

and I use alt-p, I get this:

~~~
# Lorem ipsum dolor sit amet, consectetur # adipisicing elit, sed do
eiusmod # tempor incididunt ut labore et dolore magna aliqua.
~~~

but what I think ne should produce is:

~~~
# Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
# eiusmod tempor incididunt ut labore et dolore magna aliqua.
~~~

That is, if every line in the paragraph starts with the same pattern, ne should:

1. temporarily remove the leading pattern from each line
2. temporarily reduce the RightMargin by the length of that leading pattern
3. run Paragraph on the lines
4. put the prefixins back on the lines

ne seems to do this already if the prefixes are spaces.

---John

utoddl

unread,
Jan 30, 2013, 4:18:18 PM1/30/13
to nicee...@googlegroups.com
ne-2.5, released January 29th, does this. Thanks for the suggestion.
Reply all
Reply to author
Forward
0 new messages