Indentation

main
Bob Mottram 2021-11-07 12:31:47 +00:00
parent 0cc477fb0c
commit e5a93eb9c6
1 changed files with 6 additions and 6 deletions

View File

@ -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'])