-
Notifications
You must be signed in to change notification settings - Fork 723
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
Bindgen produces #[doc = "foo\nbar"] doc comments instead of multiline doc comments #3073
Comments
I think this is a sensible default as it removes unnecessary line noise. |
I don't really find this to be unnecessary line noise. The |
FYI, you can use
Edit: Sorry, just noticed the OP already mentioned that. |
cc @pvdrz |
This behavior changed in f160d11
Bindgen used to produce doc comments like this:
but now these doc comments look like this:
which is much less readable. We have documentation on normalizing doc comments, but not everyone is using a nightly rustfmt. This change does not seem intentional but rather collateral damage in that feature, perhaps it's worth bringing the old behavior back.
The text was updated successfully, but these errors were encountered: