CodeConverter icon indicating copy to clipboard operation
CodeConverter copied to clipboard

C# -> VB: XML Documentation is parsed with some spaces missing

Open OnSive opened this issue 4 years ago • 4 comments

Input code

/// <summary></summary>
/// <param name="Variable">My variable</param>
/// <exception cref="Exception">My Exception occures on <paramref name="Variable"/></exception>

Erroneous output

''' <summary></summary>
''' <paramname="Variable">My variable</param>
''' <exceptioncref="Exception">My Exception occures on <paramrefname="Variable"/></exception>

Expected output

''' <summary></summary>
''' <param name="Variable">My variable</param>
''' <exception cref="Exception">My Exception occures on <paramref name="Variable"/></exception>

The problem is that there are spaces missing on every occurrence of a property after a keyword. Like: param name= -> paramname=

Details

  • Product in use: both
  • Version in use: Extension 8.1.6.0
  • Using .NET 4.8
  • I'm trying to fix this issue tomorrow myself - if this issue exists for every user

OnSive avatar Aug 13 '20 06:08 OnSive

Thanks for the report. There are a bunch of general hints in the contributing file. I'd suggest turning the bug report example into a test case and then debug into some of the relevant methods in https://github.com/icsharpcode/CodeConverter/tree/master/CodeConverter/VB/Trivia

Let me know if you want any help 😄

GrahamTheCoder avatar Aug 13 '20 11:08 GrahamTheCoder

Thanks for the pointers, sadly I weren't able to give it a shot on friday. I think I'll take a look today or tomorrow. I'll let you know if I run into any problems :)

OnSive avatar Aug 16 '20 16:08 OnSive