Skip to content

Commit

Permalink
<fix> fix _p extraction problem in python2
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymousException committed Jun 6, 2024
1 parent b8a2a19 commit 2345a18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/renpy_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ def ExtractFromFile(p, is_open_filter, filter_length, is_skip_underline):
continue

if is_in__p:
p_content = p_content + line_content + '\n'
p_content = p_content + line_content
if line_content.endswith('""")'):
p_content = p_content.rstrip('\n')
p_content = p_content.strip()[6:-4]
p_content = p_content.rstrip('\n').replace('\n','\\n')
#log_print(p_content)
if filter_length != 9999:
log_print(f'Found _p() in {p}:{index+1}')
Expand Down

0 comments on commit 2345a18

Please sign in to comment.