You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hemanthkini opened this issue
Jun 11, 2024
· 0 comments
Labels
C: styleRelates to docstring format style (e.g., Google, NumPy, Sphinx)P: bugPEP 257 violation or existing functionality that doesn't work as documentedU: mediumA relatively medium urgency issue
Running docformatter 1.7.5 with Python 3.12.4 against this test file:
def test(test_arg1):
content = f"""
<table style="width: 100%; height: 100%; font-size: 1.1em;">
<tr>
<td style="width: 100%; height: 100%;">🔗 This is a test {test_arg1} </td>
</tr>
</table>
"""
return content
improperly returns:
--- before/test.py
+++ after/test.py
@@ -2,7 +2,7 @@
content = f"""
<table style="width: 100%; height: 100%; font-size: 1.1em;">
<tr>
- <td style="width: 100%; height: 100%;">🔗 This is a test {test_arg1} </td>
+ <td style="width: 100%; height: 100%;">🔗 This is a test {te{test_arg1} </td>
</tr>
</table>
"""
This used to work with Python 3.12.2 - I suspect it's a combination of the use of an emoji, the variable within the curly brace, and some change in the tokenizer/untokenizer logic.
The text was updated successfully, but these errors were encountered:
weibullguy
added
P: bug
PEP 257 violation or existing functionality that doesn't work as documented
C: style
Relates to docstring format style (e.g., Google, NumPy, Sphinx)
and removed
fresh
This is a new issue
labels
Jul 31, 2024
C: styleRelates to docstring format style (e.g., Google, NumPy, Sphinx)P: bugPEP 257 violation or existing functionality that doesn't work as documentedU: mediumA relatively medium urgency issue
Running docformatter 1.7.5 with Python 3.12.4 against this test file:
improperly returns:
This used to work with Python 3.12.2 - I suspect it's a combination of the use of an emoji, the variable within the curly brace, and some change in the tokenizer/untokenizer logic.
The text was updated successfully, but these errors were encountered: