diff --git a/recipes/bloomberg-business-week.recipe b/recipes/bloomberg-business-week.recipe index 9c898a2f94..ddba5024d6 100644 --- a/recipes/bloomberg-business-week.recipe +++ b/recipes/bloomberg-business-week.recipe @@ -14,6 +14,7 @@ def get_contents(x): return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' if 'emphasis' in x['attributes']: return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' + return x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) return x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) elif otype == 'br': return '
' diff --git a/recipes/bloomberg.recipe b/recipes/bloomberg.recipe index 014a30cd8c..f41000cab9 100644 --- a/recipes/bloomberg.recipe +++ b/recipes/bloomberg.recipe @@ -15,6 +15,7 @@ def get_contents(x): return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' if 'emphasis' in x['attributes']: return '' + x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) + '' + return x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) return x.get('value', '') + ''.join(map(get_contents, x.get('content', ''))) elif otype == 'br': return '
'