Skip to content

Commit

Permalink
Merge pull request #568 from ilihh/patch-1
Browse files Browse the repository at this point in the history
Fix for issue #567
  • Loading branch information
zyddnys authored Feb 3, 2024
2 parents df2d702 + e428360 commit 9b773b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manga_translator/rendering/text_render_eng.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def seg_eng(text: str) -> List[str]:
"""
# TODO: replace with regexes

text = text.upper().replace(' ', ' ').replace(' .', '.').replace('\n', ' ')
text = text.strip().upper().replace(' ', ' ').replace(' .', '.').replace('\n', ' ')
processed_text = ''

# dumb way to ensure spaces between words
Expand Down

0 comments on commit 9b773b4

Please sign in to comment.