Skip to content

Commit

Permalink
Update manga_translator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
popcion authored Dec 26, 2024
1 parent 734083b commit a61be48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manga_translator/manga_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ async def _run_textline_merge(self, config: Config, ctx: Context):

new_text_regions = []
for region in text_regions:
# Remove leading spaces and specified characters (after pre-translation dictionary replacement)
# Remove leading spaces after pre-translation dictionary replacement
original_text = region.text
stripped_text = original_text.lstrip('、?!')
stripped_text = original_text.strip()

# Record removed leading characters
removed_start_chars = original_text[:len(original_text) - len(stripped_text)]
Expand Down

0 comments on commit a61be48

Please sign in to comment.