Skip to content

Commit cbc6965

Browse files
committed
fix: fixed 'f-string expression part cannot include a backslash'
1 parent e88bd56 commit cbc6965

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/check_rst_formatting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@ def main():
133133
found_issues = True
134134
print(f"Issues found in {file_path}:")
135135
for parent_line, child_line, context in issues:
136+
newline = "\n"
136137
print(
137138
f" Parent list item at line {parent_line}, nested list at line {child_line} without blank line separation"
138139
)
139-
print(f" Context:\n {context.replace('\n', '\n ')}")
140+
print(f" Context:\n {context.replace(newline, newline + ' ')}")
140141
print(" Fix: Add a blank line before the nested list")
141142
print()
142143

0 commit comments

Comments
 (0)