Skip to content

Commit dfbfa75

Browse files
committed
Fix a bug with the smart Python word-wrap utility
1 parent 677d5e2 commit dfbfa75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

seleniumbase/console_scripts/sb_print.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def main():
313313
elif line.count("= '") == 1 and line.count('://') == 1:
314314
whitespace = line_length2 - len(line.lstrip())
315315
new_ws = line[0:whitespace] + " "
316-
line1 = line.split('://')[0] + '://" \\'
316+
line1 = line.split('://')[0] + "://' \\"
317317
line2 = new_ws + "'" + line.split('://')[1]
318318
new_sb_lines.append(line1)
319319
if get_width(line2) + w > console_width:

seleniumbase/translate/translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def main():
654654
elif line.count("= '") == 1 and line.count('://') == 1:
655655
whitespace = line_length2 - len(line.lstrip())
656656
new_ws = line[0:whitespace] + " "
657-
line1 = line.split('://')[0] + '://" \\'
657+
line1 = line.split('://')[0] + "://' \\"
658658
line2 = new_ws + "'" + line.split('://')[1]
659659
new_sb_lines.append(line1)
660660
if get_width(line2) + w > console_width:

0 commit comments

Comments
 (0)