|
@@ 781-788 (lines=8) @@
|
| 778 |
|
def analyzeDefinition(definition): |
| 779 |
|
if hasProperty(definition, 'link', 'MetaInlines'): |
| 780 |
|
getLink.value[getFirstValue(definition, 'category')] = getProperty(definition, 'link') |
| 781 |
|
elif hasProperty(definition, 'link', 'MetaBlocks') and getProperty(definition, 'link') == []: |
| 782 |
|
getLink.value[getFirstValue(definition, 'category')] = [] |
| 783 |
|
|
| 784 |
|
return getValue(category, meta, getLink, [Str('%D'), Space(), Str('%n')], analyzeDefinition) |
| 785 |
|
|
| 786 |
|
def getLinkTitle(category, meta): |
| 787 |
|
def analyzeDefinition(definition): |
| 788 |
|
if hasProperty(definition, 'link-title', 'MetaInlines'): |
| 789 |
|
getLinkTitle.value[getFirstValue(definition, 'category')] = getProperty(definition, 'link-title') |
| 790 |
|
elif hasProperty(definition, 'link-title', 'MetaBlocks') and getProperty(definition, 'link-title') == []: |
| 791 |
|
getLinkTitle.value[getFirstValue(definition, 'category')] = [] |
|
@@ 754-761 (lines=8) @@
|
| 751 |
|
|
| 752 |
|
def getFormat(category, meta): |
| 753 |
|
def analyzeDefinition(definition): |
| 754 |
|
if hasProperty(definition, 'format', 'MetaBool'): |
| 755 |
|
getFormat.value[getFirstValue(definition, 'category')] = getProperty(definition, 'format') |
| 756 |
|
|
| 757 |
|
return getValue(category, meta, getFormat, True, analyzeDefinition) |
| 758 |
|
|
| 759 |
|
def getText(category, meta): |
| 760 |
|
def analyzeDefinition(definition): |
| 761 |
|
if hasProperty(definition, 'text', 'MetaInlines'): |
| 762 |
|
getText.value[getFirstValue(definition, 'category')] = getProperty(definition, 'text') |
| 763 |
|
elif hasProperty(definition, 'text', 'MetaBlocks') and getProperty(definition, 'text') == []: |
| 764 |
|
getText.value[getFirstValue(definition, 'category')] = [] |