From 2d87d81f93ca771d71437fbcdc377d3a41e289e9 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Wed, 6 Mar 2024 20:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E6=9C=89&=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E9=A2=98=E5=8F=B7=E4=B8=8D=E6=9B=BF=E6=8D=A2=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 4267b5b2..7bd9ac25 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -1382,7 +1382,7 @@ def itemizeProblems(string): #将题号替换为\item string_list = string.split("\n") itemed_list = [] for line in string_list: - if not "&" in line: + if not "&" in line or "tabular" in line or "array" in line or "cases" in line: itemed_list.append(re.sub(r"(?:(?:^|\n)+[例]*[\s]*[0-9]+[\s]*[\.、\s]+|\[[\s]*例[\s]*[0-9]*[\s]*\][\s]*)","\\n\\\\item ",line)) else: itemed_list.append(line)