|
@@ 560-575 (lines=16) @@
|
| 557 |
|
else: |
| 558 |
|
debug('[WARNING] pandoc-numbering: format-caption-title is not correct for category ' + category) |
| 559 |
|
|
| 560 |
|
def meta_format_entry(category, definition, defined): |
| 561 |
|
if 'format-entry-classic' in definition: |
| 562 |
|
if isinstance(definition['format-entry-classic'], MetaInlines): |
| 563 |
|
defined[category]['format-entry-classic'] = definition['format-entry-classic'].content |
| 564 |
|
# Detach from original parent |
| 565 |
|
defined[category]['format-entry-classic'].parent = None |
| 566 |
|
else: |
| 567 |
|
debug('[WARNING] pandoc-numbering: format-entry-classic is not correct for category ' + category) |
| 568 |
|
|
| 569 |
|
if 'format-entry-title' in definition: |
| 570 |
|
if isinstance(definition['format-entry-title'], MetaInlines): |
| 571 |
|
defined[category]['format-entry-title'] = definition['format-entry-title'].content |
| 572 |
|
# Detach from original parent |
| 573 |
|
defined[category]['format-entry-title'].parent = None |
| 574 |
|
else: |
| 575 |
|
debug('[WARNING] pandoc-numbering: format-entry-title is not correct for category ' + category) |
| 576 |
|
|
| 577 |
|
def meta_entry_tab(category, definition, defined): |
| 578 |
|
if 'entry-tab' in definition and isinstance(definition['entry-tab'], MetaString): |
|
@@ 530-545 (lines=16) @@
|
| 527 |
|
else: |
| 528 |
|
debug('[WARNING] pandoc-numbering: format-text-title is not correct for category ' + category) |
| 529 |
|
|
| 530 |
|
def meta_format_link(category, definition, defined): |
| 531 |
|
if 'format-link-classic' in definition: |
| 532 |
|
if isinstance(definition['format-link-classic'], MetaInlines): |
| 533 |
|
defined[category]['format-link-classic'] = definition['format-link-classic'].content |
| 534 |
|
# Detach from original parent |
| 535 |
|
defined[category]['format-link-classic'].parent = None |
| 536 |
|
else: |
| 537 |
|
debug('[WARNING] pandoc-numbering: format-link-classic is not correct for category ' + category) |
| 538 |
|
|
| 539 |
|
if 'format-link-title' in definition: |
| 540 |
|
if isinstance(definition['format-link-title'], MetaInlines): |
| 541 |
|
defined[category]['format-link-title'] = definition['format-link-title'].content |
| 542 |
|
# Detach from original parent |
| 543 |
|
defined[category]['format-link-title'].parent = None |
| 544 |
|
else: |
| 545 |
|
debug('[WARNING] pandoc-numbering: format-link-title is not correct for category ' + category) |
| 546 |
|
|
| 547 |
|
def meta_format_caption(category, definition, defined): |
| 548 |
|
if 'format-caption-classic' in definition: |
|
@@ 513-528 (lines=16) @@
|
| 510 |
|
else: |
| 511 |
|
debug('[WARNING] pandoc-numbering: listing-unlisted is not correct for category ' + category) |
| 512 |
|
|
| 513 |
|
def meta_format_text(category, definition, defined): |
| 514 |
|
if 'format-text-classic' in definition: |
| 515 |
|
if isinstance(definition['format-text-classic'], MetaInlines): |
| 516 |
|
defined[category]['format-text-classic'] = definition['format-text-classic'].content |
| 517 |
|
# Detach from original parent |
| 518 |
|
defined[category]['format-text-classic'].parent = None |
| 519 |
|
else: |
| 520 |
|
debug('[WARNING] pandoc-numbering: format-text-classic is not correct for category ' + category) |
| 521 |
|
|
| 522 |
|
if 'format-text-title' in definition: |
| 523 |
|
if isinstance(definition['format-text-title'], MetaInlines): |
| 524 |
|
defined[category]['format-text-title'] = definition['format-text-title'].content |
| 525 |
|
# Detach from original parent |
| 526 |
|
defined[category]['format-text-title'].parent = None |
| 527 |
|
else: |
| 528 |
|
debug('[WARNING] pandoc-numbering: format-text-title is not correct for category ' + category) |
| 529 |
|
|
| 530 |
|
def meta_format_link(category, definition, defined): |
| 531 |
|
if 'format-link-classic' in definition: |