Server tag code cleanup formatting in ASP VB.NET HTML. Disabling line break after opening tag?

Heya, I'm fairly new to VB ASP and I couldn't find anything else here regarding this issue.

I'm having an issue figuring out what property is associated with embedded template code in ASP VB. Here, I'm passing a fee to a code behind method, FormatFee, and returning a string representation appropriate for the current view ($ or CAD).

I'll start with:

Snippet

<td class='price'>
    <strong>
        <%# FormatFee(ViewModel.ServiceFee)%>
    </strong>

 

And, after code cleanup, I end up with an unwanted line break after <%# ...

Snippet

<td class='price'>
    <strong>
        <%#
        FormatFee(ViewModel.ServiceFee)%>
    </strong>

I've just gone through VB, HTML, and ASP looking for something that would stop this from happening to no avail. Can anyone help me out? It's irritating both me and the other SWE's that have to deal with my checked in code. ;)

Thank you!

Updates:

I've noticed that this tends to happen if I'm evaluating information for a property value so I thought I'd have a lead in HTML somewhere.

I made a custom Cleanup config that disabled HTML formatting and, as expected, the issue didn't occur. At least this rules out potential VB formatting issues.

I think this may only occur when using <%# tags; not <%, nor <%=. Why would the hash trigger a line break?

0
2 comments
Official comment

Hello!

 

Thank you for the feedback.

Seems to be a bug, I've filed it here - https://youtrack.jetbrains.com/issue/RSRP-470776

Please feel free to contact us in case of any questions or problems.

Thank you.

Avatar
Permanently deleted user

Thank you Angelina. Sad to see its a bug/not something I can immediately solve, but happy to see how quick the team is. :)

0

Please sign in to leave a comment.