Open edgarsi opened 1 month ago
Experiencing the same issue. PyCharm version: 2024.2.1. Plugin version: 1.9.1.
I have the same issue in IntelliJ IDEA 2024.2.2 with Python plugin (242.22855.74) and Wrap To Column plugin 1.9.1
@edgarsi You say "ancient hack", but this is a recent regression... Could you elaborate?
@rogerdahl Recent versions unified much of the line wrapping and paragraph wrapping code. This C hack was not called before, at least not for line wrapping. I'm 95% sure this hack still makes sense after unification, but it needs the fix proposed.
The new version wrapping Python docstrings adds
*
prefix to lines, if the comment starts on the docstring line.Input:
Output:
Looks like it is added by this ancient hack makes sense for C-style comments but not for Python i.e. not if
firstLineIsDocstring
.Fix:
Wrapping (at least Wrap Line to Column) was not adding these asterix in earlier versions, though you'll have a better understanding of why it was so. I'm not making a pull request because of this unclarity.