Skip to content

Commit 554bdc5

Browse files
committed
optimise "Expand" mode in classic
1 parent 4435057 commit 554bdc5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

PAE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
multiprocessing.freeze_support()
2222

23-
version = 'V1.13.3'
23+
version = 'V1.13.4'
2424

2525
class DemoClass(tk.Tk):
2626

src/pattern_processor.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,18 @@ def remove_repeat(something: str, timemode: str) -> str:
4444
new_atp_file.write(headerline)
4545
else:
4646
for i in range(line_num):
47+
content = ""
4748
while True:
4849
tmp_line = atp_file.readline()
4950
if tmp_line.strip().startswith(r'//'):
5051
continue
52+
elif ">" not in tmp_line and len(tmp_line) > 0:
53+
content += tmp_line
54+
continue
5155
else:
56+
content += tmp_line
5257
break
53-
line.append(tmp_line)
58+
line.append(content)
5459
repeat_cnt = get_repeat_cnt(line[-1])
5560

5661
if repeat_cnt > 1:

0 commit comments

Comments
 (0)