need a newline between paragraphs....
Gary Kline
kline at thought.org
Tue Nov 24 21:09:18 UTC 2009
On Tue, Nov 24, 2009 at 07:09:34PM +0200, Giorgos Keramidas wrote:
> On Mon, 23 Nov 2009 17:39:35 -0800, Gary Kline <kline at thought.org> wrote:
> > PS: is there any one-liner to add back one newline between paragraphs?
>
> Not an accurate one.
>
> You can *guess* when a line ends with a punctuation character
> *and* it is shorter than some configurable wrapping column that
> it is probably the end of a paragraph. But this is only a
> heuristic guess and a pretty silly heuristic at that.
>
it's prob'ly bcse i'm older than zeus, but it seems that i
once wrote a script or short c program that detected the
end-of-paragraph. maybe somewhere in atom. anyway, karl
vogel came to my rescue with a two-byte change to the
print $fh "$_";
line. appending "$/" resolves the problem.
print $fh "$_$/";
now i can point kttsd's reader at the entire [huge] file --
while i read along. or read each chapter individually. the
way i wrote them
--
Gary Kline kline at thought.org http://www.thought.org Public Service Unix
http://jottings.thought.org http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php
More information about the freebsd-questions
mailing list