diff -r 53fd793e345d -r 2b03300f610c py/gadict_srs_anki.py
--- a/py/gadict_srs_anki.py Thu Sep 15 20:13:18 2016 +0300
+++ b/py/gadict_srs_anki.py Fri Sep 16 00:44:40 2016 +0300
@@ -198,24 +198,17 @@
buf.append("syn: ")
buf.append("; ".join(["{"+s+"}" for s in sense.syn_list]))
buf.append("")
- if len(sense.tr_list) > 1:
- for (lang, tr) in sense.tr_list:
+ for (lang, tr) in sense.tr_list:
+ if len(sense.tr_list) > 1:
buf.append("
")
- buf.append(" ")
- buf.append(lang)
- buf.append("")
- buf.append(" ")
- buf.append(tr)
- buf.append("")
+ buf.append(" ")
+ buf.append(lang)
+ buf.append("")
+ buf.append(" ")
+ buf.append(tr)
+ buf.append("")
+ if len(sense.tr_list) > 1:
buf.append("
")
- else:
- for (lang, tr) in sense.tr_list:
- buf.append(" ")
- buf.append(lang)
- buf.append("")
- buf.append(" ")
- buf.append(tr)
- buf.append("")
direct_to = "".join(buf)
builder.add_note("en->tr", identity, direct_from, direct_to)
builder.add_note("tr->en", identity, direct_to, direct_from)