Skip to content

Blank line when using the @ symbol #23

Description

@alexandrejobin

When using this syntax, the rendered result adds a blank line between the 2 @ directive. In fact, it seems to add a blank line before the @ symbol.

Code

@using Microsoft.Extensions
@inherits ComponentBase

<span>Test</span>
@using Microsoft.AspNetCore
<span>Test</span>

Rendered HTML

<code class="language-cshtml-razor hljs" data-highlighted="yes"><span class="hljs-built_in">@using</span><span class="hljs-type"> Microsoft.Extensions</span>
<span class="hljs-built_in">
@inherits</span><span class="hljs-type"> ComponentBase</span>

<span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>Test<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
<span class="hljs-built_in">
@using</span><span class="hljs-type"> Microsoft.AspNetCore</span>
<span class="hljs-tag">&lt;<span class="hljs-name">span</span>&gt;</span>Test<span class="hljs-tag">&lt;/<span class="hljs-name">span</span>&gt;</span>
</code>

Result

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions