Bug 13424 - Copy text from .cshtml files is broken
Summary: Copy text from .cshtml files is broken
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.1
Hardware: Macintosh Mac OS
: High normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-07-23 17:35 UTC by Eddy Zavaleta
Modified: 2014-01-20 07:05 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Eddy Zavaleta 2013-07-23 17:35:30 UTC
Sometimes when I copy some text from a .cshtml files an extra line is copied and messed up.

To reproduce the bug just create a new .cshtml file and put the following code:

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <div>
    
    </div>
</body>
</html>

Now select from the last char ('>') at </head> to the end of the next line (<body>) and copy (cmd+c).

Selected/Copied text:
>
<body>

Clipboard contents:
>
<body
<body>
Comment 1 Mike Krüger 2013-07-24 02:54:01 UTC
Fixed

Commit: 6352d8e012d3367058c83ac23f2971d7c36bc01f

I think we should merge that in the release branch.
Comment 2 narayanp 2014-01-20 07:05:07 UTC
I have checked this issue with following builds:

All Mac
X.S 4.2.3(build 127)
git- 781819ed590c05a48201be53eb9602b56a4c1fde

I have followed the same steps as mentioned in this Issue. I am seeing following text in clipboard:

>
<body>