[Bug 427546] [NEW] auto formatting inserts tabs where not needed

Adriaan van Kekem adriaanvk at gmail.com
Thu Sep 10 20:58:14 UTC 2009


Public bug reported:

Binary package hint: monodevelop

running on trunk beta 1:
auto formatting is going wrong sometimes. i have kind of vs.net formatting: all curly braces precede with a return.
Create a new file with the following text. Now replace xxxx by } which results in the code below the ======. there u see too much tabs inserted.

namespace X
{
	public sealed class Cache
	{

                #region general

		public enum Mode : short
		{
			Static
		}

		/// <summary>
		/// Returns the unique key for that mode
		/// </summary>
		private static string CacheKey(Mode mode)
		{
			if (mode == Mode.Static)
				return "";

			xxxx
			
			
		}
	}
}

===================== after inserting }


namespace X
{
	public sealed class Cache
	{

                #region general

		public enum Mode : short
		{
			Static
		}

		/// <summary>
		/// Returns the unique key for that mode
		/// </summary>
		private static string CacheKey (Mode mode)
			{
				if (mode == Mode.Static)
					return "";

		}
			
			
		}
	}
}

** Affects: monodevelop (Ubuntu)
     Importance: Undecided
         Status: New

-- 
auto formatting inserts tabs where not needed
https://bugs.launchpad.net/bugs/427546
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list