瀏覽代碼

fix: correct docstring for remove_up_commands function in utils.py

myhloli 3 周之前
父節點
當前提交
c02edd9cba
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mineru/model/mfr/utils.py

+ 1 - 1
mineru/model/mfr/utils.py

@@ -296,7 +296,7 @@ QQUAD_PATTERN = re.compile(r'\\qquad(?!\s)')
 
 
 def remove_up_commands(s: str):
-    """Remove unnecessary \up commands from LaTeX code."""
+    """Remove unnecessary up commands from LaTeX code."""
     UP_PATTERN = re.compile(r'\\up([a-zA-Z]+)')
     s = UP_PATTERN.sub(
         lambda m: m.group(0) if m.group(1) in ["arrow", "downarrow", "lus", "silon"] else f"\\{m.group(1)}", s