n1k0/SublimeHighlight — pull request #51 by adback03 (2014-08-25 16:06:14+00:00)
Title: Bugfix for Issue #47 - Copy RTF To Clipboard fails

Copying text as either RTF or HTML was throwing the following error:

*File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 543, in run_
return self.run(edit, **args)
File "C:\Users\chrisg\AppData\Roaming\Sublime Text 3\Packages\Highlight\SublimeHighlight.py", line 143, in run
winclip.Paste(pygmented, output_type, plaintext)
File "C:\Users\chrisg\AppData\Roaming\Sublime Text 3\Packages\Highlight\HighlightLib\winclip\__init__.py", line 47, in Paste
Put(data, CF_RTF)
File "C:\Users\chrisg\AppData\Roaming\Sublime Text 3\Packages\Highlight\HighlightLib\winclip\__init__.py", line 68, in Put
raise Exception('Failed to lock: %r' % code)
Exception: Failed to lock: 6*

After removing two extra put calls in the Paste function, this issue is resolved.