Whole file
lovesegfault/beautysh
The author described this change as “Fix indent/outdent error for strings containing brackets (#36)”. It counts as a record because the check below fails on the code as it stood at 258330fe5 and passes on a694e3eab, with nothing else changed between the two runs.
Projectlovesegfault/beautysh
Fix saved2019-01-13
Sharing licenceMIT · LICENSE
Change size+2 −2
What the code was meant to do, written into the code itself as a save note
Fix indent/outdent error for strings containing brackets (#36)
The change
| 159 | 159 | defer_ext_quote = False | |
| 160 | 160 | ||
| 161 | 161 | # count open brackets for line continuation | |
| 162 | - | open_brackets += len(re.findall(r'\[', stripped_record)) | |
| 163 | - | open_brackets -= len(re.findall(r'\]', stripped_record)) | |
| 162 | + | open_brackets += len(re.findall(r'\[', test_record)) | |
| 163 | + | open_brackets -= len(re.findall(r'\]', test_record)) | |
| 164 | 164 | continue_line = re.search(r'\\$', stripped_record) | |
| 165 | 165 | line += 1 | |
| 166 | 166 | error = (tab != 0) |
The check that tells the two apart
fail→pass·tests/test_beautysh.py::TestBasic::test_indent1
Check file tests/test_beautysh.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it258330fe533dee3bd08605c8fc77524abd93e286
Broken version dated2019-01-10
Modulebeautysh.beautysh
Units changedBeautify
Fingerprint45fcefab82d0cb82
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.