Yeah, the extra </p> was a mistake when typing the code here. Should be ... balbl a"+P+
About the <br/>, that’s required for what the OP wants.
The copy/pasted text would be:
Some long text blablabala more text blablablalba bllab alb balbl aEOL
EOL
Another paragraph. blaba blb ab abl ablbabl abl ablEOL
Either by manual c/p or with System.setClipboard; that’s irrelevant. Which is paragraph → space → paragraph, which seems to me like what the OP is asking for.
If he wants to get a single paragraph in each line with no space between them, as in:
Some long text blablabala more text blablablalba bllab alb balbl aEOL
Another paragraph. blaba blb ab abl ablbabl abl ablEOL
It would be a matter of replacing duplicated EOL followed by an alphabetical character for a single EOL and the character, or using your suggestion if he doesn’t need to have control over the exact ammount of pixels between each paragraph.
Another option seems to be some RichEditableText thing which allows you to set space before and after a paragraph, but I don’t have that file nor feel like getting it only to test this. And it says that it uses special objects to display its elements.
Instead of going through that mess, he could as well use a different field for each paragraph.
|