diff --git a/build/build-termlist.py b/build/build-termlist.py
index faa8935..2ec85bb 100644
--- a/build/build-termlist.py
+++ b/build/build-termlist.py
@@ -88,6 +88,21 @@ def convert_link(text_with_urls):
regx = "(http[s]?://[\w\d:#@%/;$()~_?\+-;=\\\.&]*)(?{% for example in examples %}
{{ example }}{% endfor %}{% endif %}
+def convert_examples(text_with_list_of_examples: str) -> str:
+ examples_list = text_with_list_of_examples.split('; ')
+ if len(examples_list) == 1:
+ return examples_list[0]
+ else:
+ output = '\n'
+ for example in examples_list:
+ output += ' - ' + example + '
\n'
+ output += '
'
+ return output
+
# ---------------
# Retrieve term list metadata from GitHub
# ---------------
@@ -346,7 +361,7 @@ if True:
#if row['usage'] != '':
text += '\t\t\n'
text += '\t\t\tExamples | \n'
- text += '\t\t\t' + convert_link(convert_code(row['examples'])) + ' | \n'
+ text += '\t\t\t' + convert_examples(convert_link(convert_code(row['examples']))) + ' | \n'
#text += '\t\t\t' + convert_link(convert_code(row['usage'])) + ' | \n'
text += '\t\t
\n'