JS inserts a new line for enums after formatting

2 posts, 0 answers
  1. miksh
    miksh avatar
    275 posts
    Member since:
    Nov 2006

    Posted 07 Dec 2011 Link to this post

    Why JustCode insert a new line between enum type and [EnumMember] attribute?

    BEFORE:

    namespace MyNamespace
    {
        using System.Runtime.Serialization;
     
        /// <summary>
        /// Some comment.
        /// </summary>
        [DataContract(Name = "IntervalType", Namespace = "www")]
        public enum IntervalType
        {
            /// <summary>
            /// Some comment.
            /// </summary>
            [EnumMember]
            Type1,
     
            /// <summary>
            /// Some comment.
            /// </summary>
            [EnumMember]
            Type2,
     
            /// <summary>
            /// Some comment.
            /// </summary>
            [EnumMember]
            Type3,
        }
    }


    AFTER JustCode formatting:

    namespace MyNamespace
    {
        using System.Runtime.Serialization;
     
        /// <summary>
        /// Some comment.
        /// </summary>
        [DataContract(Name = "IntervalType", Namespace = "www")]
        public enum IntervalType
        {
            /// <summary>
            /// Some comment.
            /// </summary>
            [EnumMember]
     
            Type1,
     
            /// <summary>
            /// Some comment.
            /// </summary>
            [EnumMember]
     
            Type2,
     
            /// <summary>
            /// Some comment.
            /// </summary>
            [EnumMember]
     
            Type3,
        }
    }
  2. Kaloyan
    Admin
    Kaloyan avatar
    82 posts

    Posted 08 Dec 2011 Link to this post

    Hello Miksh,

     Thanks for pointing that out. It's a bug, indeed, and it's already fixed. The fix be available with our next internal release. There are some telerik points for you as a reward for the observation. Keep the feedback flowing.

    Kind regards,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top