Skip to content

format sub-command removes some comments #217

Description

@wholtz

I was expecting that the format sub-command would keep all comment lines (with whitespace added or removed to the left of the comment), but I'm seeing some comments get stripped out:

$ cat comment.wdl
version 1.0

workflow my_work {
  input{
    # first comment
    String foobar
  }

  Int num = 1
# second comment
}
$ wdltools check comment.wdl 
$ wdltools format comment.wdl 
comment.wdl
version 1.0

workflow my_work {
  input {
    # first comment
    String foobar
  }

  Int num = 1
}
$ 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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