-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Presently, dtsfmt always adds a newline before a comment if the previous line is not a comment. If a comment is at the top of a node though this turns:
node {
// comment before property
property = "value";
};
into
node {
// comment before property
property = "value";
};
Is that intentional, or a side effect? I think we could add a simple check for node there as well, since I can't think of any other situation where this behavior feels awkward, and the sep call already checks for \n\n circumstances otherwise.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels