Bug 13674 - Copy out text from Designer > Source tab - no end-of-line breaks
Summary: Copy out text from Designer > Source tab - no end-of-line breaks
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: unspecified
Hardware: PC Windows
: Low normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-08-01 00:05 UTC by Ales Suchac
Modified: 2017-07-07 15:38 UTC (History)
6 users (show)

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

Copy & paste from Designer > Source loses end-of-line breaks (82.26 KB, image/png)
2013-08-01 00:05 UTC, Ales Suchac

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 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:

Description Ales Suchac 2013-08-01 00:05:06 UTC
Created attachment 4506 [details]
Copy & paste from Designer > Source loses end-of-line breaks

When I copied out a piece of text from Android layout in Designer > Source tab into Notepad, there were no end-of-line breaks. Note: the XAML file has Windows end-of-line sequence CrLf. I keep all my source with CrLf, even if they are originally created with Lf breaks because of the template. 

This is a new bug, it didn't happen with older versions of Xamarin in VS 2010.

Currently I use Xamarin for Android 4.8.13 in VS 2012. See screenshot.
Comment 1 Ales Suchac 2013-08-01 00:23:33 UTC
In fact, I believe that the selected text is copied out with Lf breaks only, even if the original XAML file did have CrLf breaks. 

If you copy the same text back to designer from the Notepad, it shows end-of-line breaks.
Comment 2 Pierce Boggan [MSFT] 2017-07-07 15:38:45 UTC
Thanks so much for taking the time to submit this report @Ales! I can confirm I am no longer able to reproduce this issue using the latest Visual Studio 15.3 preview builds. Copying out to a text editor like Visual Studio Code maintains line breaks and formatting as expected.

Marking this report as RESOLVED.