We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d043f commit 0c14306Copy full SHA for 0c14306
apps/common/handle/impl/doc_split_handle.py
@@ -112,11 +112,7 @@ def get_image_id(image_id):
112
113
title_font_list = [
114
[36, 100],
115
- [26, 36],
116
- [24, 26],
117
- [22, 24],
118
- [18, 22],
119
- [16, 18]
+ [30, 36]
120
]
121
122
@@ -130,7 +126,7 @@ def get_title_level(paragraph: Paragraph):
130
126
if len(paragraph.runs) == 1:
131
127
font_size = paragraph.runs[0].font.size
132
128
pt = font_size.pt
133
- if pt >= 16:
129
+ if pt >= 30:
134
for _value, index in zip(title_font_list, range(len(title_font_list))):
135
if pt >= _value[0] and pt < _value[1]:
136
return index + 1
0 commit comments