Remove legacy formatting for antonyms and synonyms.
--- a/py/gadict_srs_anki.py Fri Sep 16 20:49:42 2016 +0300
+++ b/py/gadict_srs_anki.py Fri Sep 16 20:52:15 2016 +0300
@@ -196,11 +196,11 @@
buf.append("</span>")
if sense.ant_list and len(sense.ant_list) > 0:
buf.append(" <span class='ant'>ant: ")
- buf.append("; ".join(["{"+s+"}" for s in sense.ant_list]))
+ buf.append("; ".join(sense.ant_list))
buf.append("</span>")
if sense.syn_list and len(sense.syn_list) > 0:
buf.append(" <span class='syn'>syn: ")
- buf.append("; ".join(["{"+s+"}" for s in sense.syn_list]))
+ buf.append("; ".join(sense.syn_list))
buf.append("</span>")
for (lang, tr) in sense.tr_list:
if len(sense.tr_list) > 1:
@@ -232,11 +232,11 @@
buf.append("</span>")
if sense.ant_list and len(sense.ant_list) > 0:
buf.append(" <span class='ant'>ant: ")
- buf.append("; ".join(["{"+s+"}" for s in sense.ant_list]))
+ buf.append("; ".join(sense.ant_list))
buf.append("</span>")
if sense.syn_list and len(sense.syn_list) > 0:
buf.append(" <span class='syn'>syn: ")
- buf.append("; ".join(["{"+s+"}" for s in sense.syn_list]))
+ buf.append("; ".join(sense.syn_list))
buf.append("</span>")
for (lang, tr) in sense.tr_list:
if len(sense.tr_list) > 1: