Say I have the following document:
Sir Bedevere
------------
Well, now, uh, Lancelot, Galahad, and I, wait until nightfall, and then leap out of the rabbit, taking the French by surprise - not only by surprise, but totally unarmed!
If I execute M-x fill-paragraph
, I get this result:
Sir Bedevere ------------ Well, now, uh, Lancelot, Galahad, and
I, wait until nightfall, and then leap out of the rabbit, taking
the French by surprise - not only by surprise, but totally
unarmed!
However, I would like it to produce this output:
Sir Bedevere
------------
Well, now, uh, Lancelot, Galahad, and I, wait until nightfall,
and then leap out of the rabbit, taking the French by surprise -
not only by surprise, but totally unarmed!
Is there a way to get fill-paragraph
to not auto-fill past a horizontal rule like this? Ideally it would work with other rule-like lines (made up of asterisks, octothorpes, etc.).
Edit: Can this be made to work in comments too? In this case, the horizontal rule would appear after the comment symbol(s), like in these examples:
# -----
// **********
/*
* ##############
*/