Skip to content

Commit ae6c2bc

Browse files
fix: place code in the correct place in translate tags added text (#15)
1 parent 2ee9eca commit ae6c2bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def process_code_tag(text, tvar_code_id=0):
153153
if not content:
154154
return text
155155
# Wrap the content in <translate> tags
156-
wrapped_content = f'<tvar name=code{tvar_code_id}>{content}</tvar>'
157-
return f"{prefix}{wrapped_content}{suffix}"
156+
wrapped_content = f'<tvar name=code{tvar_code_id}>{prefix}{content}{suffix}</tvar>'
157+
return wrapped_content
158158

159159
def process_div(text):
160160
"""

0 commit comments

Comments
 (0)