logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Esc-q and new line / line feed chars: msg#00019

Subject: Re: Esc-q and new line / line feed chars
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





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>