Update contract_builder.py
Browse files- contract_builder.py +1 -1
contract_builder.py
CHANGED
|
@@ -125,7 +125,7 @@ class ContractBuilder:
|
|
| 125 |
if paragraph.startswith("ARTICLE"):
|
| 126 |
elements.append(Paragraph(paragraph, styles['ContractArticle']))
|
| 127 |
# Si c'est un sous-titre (comme "1.1 Œuvre concernée")
|
| 128 |
-
elif paragraph.strip().startswith("1.") and len(paragraph.split("\n")[0]) <
|
| 129 |
elements.append(Paragraph(paragraph, styles['ContractSubArticle']))
|
| 130 |
else:
|
| 131 |
elements.append(Paragraph(paragraph, styles['ContractText']))
|
|
|
|
| 125 |
if paragraph.startswith("ARTICLE"):
|
| 126 |
elements.append(Paragraph(paragraph, styles['ContractArticle']))
|
| 127 |
# Si c'est un sous-titre (comme "1.1 Œuvre concernée")
|
| 128 |
+
elif paragraph.strip().startswith("1.") and len(paragraph.split("\n")[0]) < 250:
|
| 129 |
elements.append(Paragraph(paragraph, styles['ContractSubArticle']))
|
| 130 |
else:
|
| 131 |
elements.append(Paragraph(paragraph, styles['ContractText']))
|