Skip to content

Commit 526dc0e

Browse files
BrightonBrighton
authored andcommitted
style: fix ruff lint and format
Signed-off-by: Brighton <brighton@Brightons-MacBook-Air.local>
1 parent 0bbbf9d commit 526dc0e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docling/backend/msword_backend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,9 @@ def _build_enum_marker(self, numid: int, ilvl: int) -> str:
548548
# Skip when lvlText is a bare bullet symbol like "o" or "•".
549549
if lvl_text and re.search(r"%\d+", lvl_text):
550550
stripped = re.sub(r"%\d+", "", lvl_text)
551-
stripped = stripped.strip(" .)()()::[]")
551+
stripped = stripped.strip(" .)(:[]")
552552
if stripped:
553+
553554
def _replace(match):
554555
lvl_idx = int(match.group(1)) - 1
555556
counter = self.list_counters.get((numid, lvl_idx))

0 commit comments

Comments
 (0)