Inserting blank lines between paragraphs [was: no subject]

Eric Chatonet eric.chatonet at sosmartsoftware.com
Sat Jul 30 08:29:13 EDT 2005


Hi John,

Try:
put the htmlText of fld "Notes" into tHtml
replace "</p>" & cr with "</p>" & cr & "</p><p>"  & cr in tHtml
set the htmlText of fld "Notes" to tHtml

1. This will insert a blank line between paragraphs.
2. Always work on the html by putting it into a variable first.

Best Regards from Paris,

Eric Chatonet.

Le 30 juil. 05 à 14:20, John Ridge a écrit :

> I'm in the habit of pasting text from a specific website into a  
> stack I use for keeping research notes. I'm surprised and pleased  
> that the Paste command copes with styled text - even better, I can  
> then re-format the text, changing fontsize and font, and still keep  
> other styled elements such as colour.
>
> But for some reason (maybe the website has just been redesigned?)  
> there is now no white space between paragraphs. No problem, I  
> thought - I'll script my "New Note" button to do all the work,  
> including the pasting - so after checking the docs I tried
>
> set the htmlText of fld "Notes" to the clipboarddata["HTML"]
>
> which is fine. But my attempts to add white space seem to be  
> destroying all the styling...
>
> I've tried
>
> replace "<p>" with "<p></p><p>" in fld "Notes"
>
> which I thought was pretty subtle. Hmm... I must be missing  
> something obvious here, as usual.
>
> TIA for any help

----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the use-livecode mailing list