PyCharm 2020.3.2 - Reformat Code - strange behaviour Follow
PyCharm 2020.3.2 - Reformat Code - strange behaviour
Hard Wrap at: 79 (PEP 8) columns, Wrap on typing = False
Source:
def main():
while True:
if current_price >= sell_price:
current_profit_prc = ((current_price - sell_price) / sell_price) * 100
Code -> Reformat Code:
Is this normal behaviour, or I can fix it?
Please sign in to leave a comment.
Hello,
thank you for reporting this, I have submitted a bug https://youtrack.jetbrains.com/issue/PY-46629 please vote for it in order to be notified ones it is resolved.
>Is this normal behaviour, or I can fix it?
as expected setting hard wrap at 83 does not produce the wrong result, I agree it is not the best workaround. Or disabling hard wrapping at all, as it is the faulty value here.
Please accept my apologies for the inconvenience.