Is it possible to add a second Edge Marker and wrap docstring?
PEP 8 suggests statement lines should be limited to 79 characters and lines with comments and docstrings to 72 characters. In Preferences > Editor > Line Wrapping I can set a single Edge Marker that shows where that column is in the editor. There's also a setting Reformatting Wrap Column that can be set to a value different from the Edge Marker. So at first, I thought I'm out of luck, either my code will be wrapped at column 72 or my docstrings will be wrapped at column 79. But then came the surprise, the docstrings weren't wrapped. I mean they weren't wrapped at all. I had to do that manually.
Is there a way to turn on docstring wrapping at a user-configurable column? And if there's none, is it possible to add a second Edge Marker to have at least a visual crutch?
Comments
Text wrapping occurs when you use Source > Rewrap text. Are docstrings wrapped when you use this?
Very strange things happen. I thought that having the auto-formatting set to Whole Files Before Save would format the whole file. But it seems docstrings are excluded. Which indeed does make some sense as the user might not want those to be formatted. Nevertheless, it isn't consistent. For example, none of the comments are wrapped (neither on save nor when using Source > Rewrap text). On the other hand, when using Rewrap text, some of the stuff are wrapped, some aren't. If I move the cursor to the line that should be wrapped it will be. But if I select a larger portion of text wrapping either happens or it does not. I guess I'm not exactly aware of how that is expected to work.
The list of strange: