- Subject: Re: Esc-q and new line / line feed chars
- From: Romano Giannetti <romanol@xxxxxxx>
- Date: Wed, 4 May 2005 17:48:18 +0200
On Wed, May 04, 2005 at 02:36:58PM +0200, G. Milde wrote:
> On 4.05.05, Romano Giannetti wrote:
> > - replace every "¿¿" with a new-line.
>
> Why not use "^L"? (Ok, I assume you used a character that is easy to
> type for you but unlikely to be used by others...)
Yep. Exactly. But you're right, I was making the same error I mentioned in
the mail...
> or
>
> define paragraphs_to_lines()
> {
> push_spot_bob();
> replace("\n\n", "");
> replace("\n", " ");
> replace("", "\n");
> pop_spot();
> }
>
> (untested).
I suspected that you could produce a slang function in less than a
microsecond :-). Thanks (probably the first replace shuold be changed with a
regexp for "two or more \n" to avoid spurious spaces, but yes, it should
work).
Romano
--
Romano Giannetti - Univ. Pontificia Comillas (Madrid, Spain)
Electronic Engineer - phone +34 915 422 800 ext 2416 fax +34 915 596 569
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]