Skip to content

Investigate extra newline added between } and #endif in C# #1292

Closed

Description

@mihaipopescu

Expected versus output diff:

diff --git "a/C:\\work\\external\\uncrustify\\tests\\output\\staging\\60035-UNI-11993.cs" "b/C:\\work\\external\\uncrustify\\tests\\results\\staging\\60035-UNI-11993.cs"
index 7f51a16..bb4e322 100644
--- "a/C:\\work\\external\\uncrustify\\tests\\output\\staging\\60035-UNI-11993.cs"
+++ "b/C:\\work\\external\\uncrustify\\tests\\results\\staging\\60035-UNI-11993.cs"
@@ -1,11 +1,12 @@
 namespace Namespace
 {
     public class Class
     {
         #if DEBUG
         public statc foo()
         {
         }
+
         #endif
     }
 }

Debug support files:

60035-UNI-11993.cs
60035-UNI-11993.cs.log
60035-UNI-11993.cs.unc
Uncrustify.CSharp.cfg
UNI-11993.cs

Disclaimer:

Note: This is a generated issue from our internal issue tracker.
Expect a dry description which could be insufficient to properly understand the issue.
On the other hand, the support files should be sufficient to easily reproduce and debug the issue,
but please comment if it's still unclear and I will get back with clarifications.
See main discussion thread here #1223.

Activity

  1. added a commit that references this issue on Oct 13, 2017
  2. gmaurel commented on Feb 16, 2018

    @gmaurel
    Collaborator

    Fixed at 1dfde8d, on Feb 13 18:13:22 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions