def description_tag_prettify(uglyname):
"""Make description tags prettier."""
if uglyname is None or isinstance(uglyname, jinja2.Undefined):
return uglyname
prettynames = {
'SecurityOverrideGuidance': 'Security Override Guidance',
'MitigationControl': 'Mitigation Control',
'IAControls': 'IA Controls',
'FalseNegatives': 'False Negatives',
'Mitigations': 'Mitigations',
'ThirdPartyTools': 'Third Party Tools',
'Responsibility': 'Responsibility',
'PotentialImpacts': 'Potential Impacts',
'FalsePositives': 'False Positives',
'Documentable': 'Documentable'
}
if uglyname in prettynames:
return prettynames[uglyname]
else:
return uglyname
# Get Jinja configured properly
评论列表
文章目录