Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
a392f445
Commit
a392f445
authored
Jun 12, 2025
by
myhloli
Browse files
fix: remove trailing backslashes from strings in modeling_unimernet.py
parent
d4f958a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mineru/model/mfr/unimernet/unimernet_hf/modeling_unimernet.py
...ru/model/mfr/unimernet/unimernet_hf/modeling_unimernet.py
+4
-0
No files found.
mineru/model/mfr/unimernet/unimernet_hf/modeling_unimernet.py
View file @
a392f445
...
...
@@ -374,6 +374,10 @@ def latex_rm_whitespace(s: str):
# \qquad后补空格
s
=
QQUAD_PATTERN
.
sub
(
r
'\\qquad '
,
s
)
# 如果字符串以反斜杠结尾,去掉最后的反斜杠
while
s
.
endswith
(
'
\\
'
):
s
=
s
[:
-
1
]
return
s
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment