Skip to content

Snippet injector seems to add newlines on every run with -w flag #11

Open
@behaviary

Description

@behaviary

It looks like "\n"s are being added to the beginning and end of whole snippet blocks on every run with the "wrap" flag.

    private wrapSnippetWithComments(snippetTag, snippetId): string {
        var wrappedSnippetTag = "";
        wrappedSnippetTag += "\n<snippet id='" + snippetId + "'>\n"
        wrappedSnippetTag += snippetTag
        wrappedSnippetTag += "\n</snippet>\n"

        return wrappedSnippetTag;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions