Skip to content

Commit ed41a0b

Browse files
committed
Bugfix in Libreoffice formatting
1 parent 9976292 commit ed41a0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pywikitools/libreoffice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def search_and_replace(self, search: str, replace: str,
138138
found.CharWeight = FontWeight.NORMAL
139139
elif next_match.group(0) == "<i>":
140140
found.CharPosture = FontSlant.ITALIC
141-
elif next_match.group(0) == "</b>":
141+
elif next_match.group(0) == "</i>":
142142
found.CharPosture = FontSlant.NONE
143143
elif next_match.group(0) == "<u>":
144144
found.CharUnderline = FontUnderline.SINGLE

0 commit comments

Comments
 (0)