(line)
| 91 | |
| 92 | |
| 93 | def get_width(line): |
| 94 | # Return the true width of the line. Not the same as line length. |
| 95 | # Chinese/Japanese/Korean characters take up double width visually. |
| 96 | line_length = len(line) |
| 97 | for char in line: |
| 98 | if is_cjk(char): |
| 99 | line_length += 1 |
| 100 | return line_length |
| 101 | |
| 102 | |
| 103 | def process_test_file(code_lines, new_lang): |