Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format sub-command removes some comments #217

Open
wholtz opened this issue Mar 24, 2022 · 0 comments
Open

format sub-command removes some comments #217

wholtz opened this issue Mar 24, 2022 · 0 comments

Comments

@wholtz
Copy link

wholtz commented Mar 24, 2022

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
}
$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant