AI-Planning / pddl

Unquestionable PDDL 3.1 parser
https://ai-planning.github.io/pddl/
MIT License
85 stars 27 forks source link

Don't remove comments when formatting #113

Open Tonelllo opened 6 months ago

Tonelllo commented 6 months ago

Is your feature request related to a problem? Please describe. If, for example, in the command-line I execute pddl problem problem.pddl the formatted file will have the comments removed

Describe the solution you'd like I would like to have the comments to be kept where they are. Maybe add a command-line option for this if the default desired behavior is to remove the comments

francescofuggitti commented 6 months ago

Hi @Tonelllo,

thanks for the feature request! It would certainly be an interesting addition to the library. However, in doing that, I think we should give the user the choice to have them kept or removed. It shouldn't be too hard to do, but it would certainly require some time. I'm a bit busy at the moment, and I don't know about the others. Why don't you give it a try? It could be a good first issue!

Tonelllo commented 6 months ago

Thanks for the reply. I will see if in the following weeks I will have some time to have a look at it