Closed sloganking closed 2 years ago
One possible option. The only things strfmt
is allowed to do is
//<
closing comments//>
or //<>
bracketed commentsPros:
add_brackets
and remove_brackets
, would be lossless, in that converting from bracketless to brackets and back to bracketless, would result in no change.strfmt
to fight them.The above proposal https://github.com/sloganking/Structured-commenting-formatter/issues/32#issuecomment-1093698308 is satisfactory for now. Stylistic changes might be added later as an option. I believe my recent commits should half already implemented this as well.
Currently, running
add_brackets
will not only add brackets, but also may add or remove whitespace lines, in a currently half baked attempt to make things look better. This is a bit unintuitive.