Skip to content

Commit

Permalink
Fix char index misalignment after ignoring.
Browse files Browse the repository at this point in the history
scossu committed Jul 21, 2024
1 parent 71e99f5 commit ed5a8e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scriptshifter/trans.py
Original file line number Diff line number Diff line change
@@ -169,6 +169,7 @@ def transliterate(src, lang, t_dir="s2r", capitalize=False, options={}):
logger.info(f"Ignored token: {ctx.tk}")
ctx.dest_ls.append(ctx.tk)
ctx.cur += step
cur_char = ctx.src[ctx.cur]
ctx.ignoring = True
break
# We looked through all ignore tokens, not found any. Move on.

0 comments on commit ed5a8e5

Please sign in to comment.