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 [EMAIL PROTECTED]/
Phone 33 (0)1 43 31 77 62
Mobile 33 (0)6 20 74 50 86
----------------------------------------------------------------
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution