Commit d104670
Corrige bugs em labeling_utils e function_docx
labeling_utils.py:
- Regex de detecção da seção de referências mais precisa (refer[eê]nci|references?)
- resp_json inicializado antes do bloco condicional (evitava UnboundLocalError)
- Escapa '<' literal em append_fragment para não quebrar o parser XML
- Guarda None em proccess_special_content para search_special_id retornando None
function_docx.py:
- is_numPr inicializado antes do loop (tabelas após listas eram descartadas
silenciosamente por flag herdada da iteração anterior)
- Parágrafos adicionados a content independente de tabelas adjacentes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 5d1c282 commit d104670
2 files changed
Lines changed: 29 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
776 | 787 | | |
777 | 788 | | |
778 | 789 | | |
| |||
874 | 885 | | |
875 | 886 | | |
876 | 887 | | |
| 888 | + | |
877 | 889 | | |
878 | 890 | | |
879 | 891 | | |
880 | 892 | | |
881 | 893 | | |
882 | | - | |
883 | 894 | | |
884 | 895 | | |
885 | 896 | | |
| |||
1279 | 1290 | | |
1280 | 1291 | | |
1281 | 1292 | | |
| 1293 | + | |
1282 | 1294 | | |
1283 | 1295 | | |
1284 | 1296 | | |
| |||
1351 | 1363 | | |
1352 | 1364 | | |
1353 | 1365 | | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
1372 | 1378 | | |
1373 | 1379 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
342 | 346 | | |
343 | 347 | | |
344 | 348 | | |
| |||
0 commit comments