CutCopyDragHTML loses new lines

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Jeff Pek - Autodesk, Inc.
Version: 4.0.0271
Platform: Services
Environment: Windows XP (32-bit)
Avatar
I've been working with the HTML Format clipboard content, as copied from a SyntaxEditor control. I've noticed that when the HTML that's clipped contains one or more new lines, e.g.,:

foo
bar

You get HTML that looks like this:

<span style="color: #000000;">foo
bar</span>

But ... when that HTML is presented (e.g., in OneNote), it all runs together:

foo bar

As per usual HTML formatting behavior.

I think you need to add <br/> tags in place of the new lines.

Thanks,
Jeff

Comments (1)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We've just added a PRE block around the code so this won't happen. This will be in the next maintenance release.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.