Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VB -> C#: Weird whitespace for comments #334

Closed
mrmonday opened this issue Jul 18, 2019 · 2 comments
Closed

VB -> C#: Weird whitespace for comments #334

mrmonday opened this issue Jul 18, 2019 · 2 comments
Labels
VB -> C# Specific to VB -> C# conversion

Comments

@mrmonday
Copy link
Contributor

Input code

Class Foo

End Class

''' <summary>
''' Something
''' </summary>
Friend Class Program
    Public Shared Sub Main(ByVal args As String())
    End Sub
End Class

Erroneous output

namespace ConsoleApp4
{
    class Foo
    {
    }

    /// <summary>

/// Something

/// </summary>
    internal class Program
    {
        public static void Main(string[] args)
        {
        }
    }
}

Expected output

namespace ConsoleApp4
{
    class Foo
    {
    }

    /// <summary>
    /// Something
    /// </summary>
    internal class Program
    {
        public static void Main(string[] args)
        {
        }
    }
}

Details

Product in use: VS extension

Version in use: 6.9.0.0

@GrahamTheCoder
Copy link
Member

We should make sure this is covered in the project and solution tests when it's fixed. Though previously I found a similar issue caused by newline differences, which makes it annoying to test because git gets involved

@GrahamTheCoder GrahamTheCoder added enhancement VB -> C# Specific to VB -> C# conversion and removed enhancement labels Jul 20, 2019
@Saibamen
Copy link
Contributor

Should be fixed in release 8.0.2: https://github.com/icsharpcode/CodeConverter/releases/tag/8.0.2
Please retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VB -> C# Specific to VB -> C# conversion
Projects
None yet
Development

No branches or pull requests

3 participants