← every case · 8000 · what the line counts as
a blank line inside a string that runs over several lines. A definition and not a mistake: blank to a counter that asks what the line itself says, code to one that asks what the line is inside
| 1 | codecodecodecodecode | value = """ |
| 2 | codecodecodecodecode | first line of the string |
| 3 | blanksextracodecodecode | |
| 4 | codecodecodecodecode | third line after a blank one |
| 5 | codecodecodecodecode | """ |
| 6 | codecodecodecodecode | print(value) |
stringcommentthe tag around another language
the empty line is set aside as blank before any comment rule runs, which is what its own rules ask, and the rest of the string around it is read as documentation
cloc --json cases/8000-what_the_line_counts_as/8030-blank_line_inside_a_multiline_string/input.py
mezura cases/8000-what_the_line_counts_as/8030-blank_line_inside_a_multiline_string/input.py --output json --hide timing --counting content
mezura cases/8000-what_the_line_counts_as/8030-blank_line_inside_a_multiline_string/input.py --output json --hide timing --counting region
scc --format json cases/8000-what_the_line_counts_as/8030-blank_line_inside_a_multiline_string/input.py
tokei --output json cases/8000-what_the_line_counts_as/8030-blank_line_inside_a_multiline_string/input.py