mirror of https://gitlab.com/bashrc2/epicyon
Indentation
parent
0cc477fb0c
commit
e5a93eb9c6
|
@ -566,16 +566,16 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
|
||||||
' "addressCountry": "' + country + '"\n'
|
' "addressCountry": "' + country + '"\n'
|
||||||
addComma = ','
|
addComma = ','
|
||||||
cityMarkup = \
|
cityMarkup = \
|
||||||
' "address": {\n' + \
|
' "address": {\n' + \
|
||||||
' "@type": "PostalAddress",\n' + \
|
' "@type": "PostalAddress",\n' + \
|
||||||
' "addressLocality": "' + city + '"' + addComma + '\n' + \
|
' "addressLocality": "' + city + '"' + addComma + '\n' + \
|
||||||
countryMarkup + \
|
countryMarkup + \
|
||||||
' },\n'
|
' },\n'
|
||||||
|
|
||||||
skillsMarkup = ''
|
skillsMarkup = ''
|
||||||
if actorJson.get('hasOccupation'):
|
if actorJson.get('hasOccupation'):
|
||||||
if isinstance(actorJson['hasOccupation'], list):
|
if isinstance(actorJson['hasOccupation'], list):
|
||||||
skillsMarkup = ' "hasOccupation": [\n'
|
skillsMarkup = ' "hasOccupation": [\n'
|
||||||
firstEntry = True
|
firstEntry = True
|
||||||
for skillDict in actorJson['hasOccupation']:
|
for skillDict in actorJson['hasOccupation']:
|
||||||
if skillDict['@type'] == 'Role':
|
if skillDict['@type'] == 'Role':
|
||||||
|
@ -641,7 +641,7 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
|
||||||
' "skills": ' + skillsListStr + '\n' + \
|
' "skills": ' + skillsListStr + '\n' + \
|
||||||
' }'
|
' }'
|
||||||
firstEntry = False
|
firstEntry = False
|
||||||
skillsMarkup += '\n ],\n'
|
skillsMarkup += '\n ],\n'
|
||||||
|
|
||||||
description = removeHtml(actorJson['summary'])
|
description = removeHtml(actorJson['summary'])
|
||||||
nameStr = removeHtml(actorJson['name'])
|
nameStr = removeHtml(actorJson['name'])
|
||||||
|
|
Loading…
Reference in New Issue