dnanexus / wdlTools

WDL tools for parsing, type-checking, and more
Apache License 2.0
25 stars 7 forks source link

format sub-command removes some comments #217

Open wholtz opened 2 years ago

wholtz commented 2 years ago

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
}
$