CutCopyDragHTML loses new lines

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by Jeff Pek - Autodesk, Inc.
Version: 4.0.0271
Platform: .NET 2.0
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 13 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 (v21.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.