Bug 13373 - XS adding linefeeds within #ifs
Summary: XS adding linefeeds within #ifs
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 5.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-07-22 06:20 UTC by Paul Johnson
Modified: 2015-05-07 00:27 UTC (History)
1 user (show)

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


Attachments
#if adding space (410.68 KB, application/x-shockwave-flash)
2013-07-22 06:20 UTC, Paul Johnson
Details


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

Description Paul Johnson 2013-07-22 06:20:04 UTC
Created attachment 4389 [details]
#if adding space

Using XS 4.1.7, OS X 10.8.4

XS is placing additional line feeds inside of #if #endif conditions. See the attached video showing it in action. Additional linefeeds are also added if the file is subsequently added to.
Comment 1 Mike Krüger 2013-07-23 02:24:29 UTC
fixed
Comment 2 Paul Johnson 2014-05-04 15:45:46 UTC
Opening again as I'm getting this on XS 5.

Create a #region
Create a #if within the region
Close #if
Close #region

XS adds line feeds before and after the #if
Comment 3 Paul Johnson 2014-05-04 15:48:14 UTC
Also happens if you have the #if with the #region inside it
Comment 4 Mike Krüger 2015-05-07 00:27:32 UTC
Works for me - may take a while until bugfixes bubble up to the release version btw.