Skip to content

Commit

Permalink
Bugfix #513
Browse files Browse the repository at this point in the history
  • Loading branch information
thatDudo committed Nov 20, 2023
1 parent e37470e commit 0d2cb7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manga_translator/rendering/text_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ def get_present_syllables(line_idx, word_pos):
syl_start_idx, syl_end_idx = get_present_syllables_range(i, j)
current_syllables = syllables[word_idx][syl_start_idx:syl_end_idx]
line_text += ''.join(current_syllables)
if len(line_text) == 0:
continue
if j == 0 and i > 0 and line_text_list[-1][-1] == '-' and line_text[0] == '-':
line_text = line_text[1:]
line_width_list[i] -= hyphen_offset_x
Expand Down

0 comments on commit 0d2cb7b

Please sign in to comment.