Please, mostly for Alberto: test this branch. Thanks. El 13/12/2014 13:53, commits-noreply@xxxxxxxxxxxxx escribió:
1 new commit in AppendText: https://bitbucket.org/nvdaaddonteam/appendtext/commits/ca4dcf728229/ Changeset: ca4dcf728229 Branch: newLines User: norrumar Date: 2014-12-13 12:53:21+00:00 Summary: Trying to preserve new lines. Affected #: 1 file diff --git a/addon/globalPlugins/clipContentsDesigner/__init__.py b/addon/globalPlugins/clipContentsDesigner/__init__.py index aac691d..1b2ff04 100644 --- a/addon/globalPlugins/clipContentsDesigner/__init__.py +++ b/addon/globalPlugins/clipContentsDesigner/__init__.py @@ -127,22 +127,22 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin): info=None if not info or info.isCollapsed: return None - if obj == treeInterceptor: - try: - clipData = api.getClipData() - except TypeError: - clipData = None - try: - info.copyToClipboard() - selectedText = api.getClipData() - if clipData is not None: - api.copyToClip(clipData) - else: - self.clearClipboard() - return selectedText - except: - pass - return info.text + #if obj == treeInterceptor: + #try: + #clipData = api.getClipData() + #except TypeError: + #clipData = None + #try: + #info.copyToClipboard() + #selectedText = api.getClipData() + #if clipData is not None: + #api.copyToClip(clipData) + #else: + #self.clearClipboard() + #return selectedText + #except: + #pass + return info.clipboardText def script_setSelectionStartMarker(self, gesture): self._copyStartMarker = api.getReviewPosition().copy() @@ -168,7 +168,7 @@ class GlobalPlugin(globalPluginHandler.GlobalPlugin): # Translators: message presented when review cursor has been used to append text and there is no text to append. ui.message(_("No text to append")) return - newText = textInfos.convertToCrlf(pos.text) + newText = pos.clipboardText self._copyStartMarker = None try: clipData = api.getClipData() Repository URL: https://bitbucket.org/nvdaaddonteam/appendtext/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
--- El software de antivirus Avast ha analizado este correo electrónico en busca de virus. http://www.avast.com ---------------------------------------------------------------- NVDA add-ons Central: A list for discussing NVDA add-ons To post a message, send an email to nvda-addons@xxxxxxxxxxxxx. To unsubscribe, send an email with the subject line of "unsubscribe" (without quotes) to nvda-addons-request@xxxxxxxxxxxxx. If you have questions for list moderators, please send a message to nvda-addons-moderators@xxxxxxxxxxxxx. Community addons can be found here: http://addons.nvda-project.org