mirror of https://gitlab.com/bashrc2/epicyon
Formatting of list of skills
parent
c1eda4399b
commit
797bd5720a
|
@ -728,11 +728,17 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str,
|
|||
occupationStr += ' "name": "' + occupationName + '",\n'
|
||||
skillsList = actorJson['hasOccupation']['skills']
|
||||
if skillsList:
|
||||
skillsListStr = '['
|
||||
for skillStr in skillsList:
|
||||
if skillsListStr != '[':
|
||||
skillsListStr += ', '
|
||||
skillsListStr += '"' + skillStr + '"'
|
||||
skillsListStr += ']'
|
||||
skillsMarkup = \
|
||||
' "hasOccupation": {\n' + \
|
||||
' "@type": "Occupation",\n' + \
|
||||
occupationStr + \
|
||||
' "skills": ' + str(skillsList) + '\n' + \
|
||||
' "skills": ' + skillsListStr + '\n' + \
|
||||
' "},\n'
|
||||
cityMarkup = ''
|
||||
if city:
|
||||
|
|
Loading…
Reference in New Issue