freealise commited on
Commit
3b567f0
·
1 Parent(s): 863acdd

link to dict

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -105,9 +105,10 @@ if sentence:
105
  cells = line.replace('_', '\\_').replace('|', '|').replace(':', ':').split('\t')
106
 
107
  wrd = cells[2]
108
- cells[2] = "<iframe src='https://freeali.se/freealise/translate/index.htm#gsc.q=" + wrd + "&gsc.tab=1&gsc.sort=' width='256' height='128'></iframe><br/>"
109
- cells[2] += "<iframe src='https://freeali.se/freealise/translate/loader.htm?q=" + wrd + "' width='256' height='128'></iframe><br/>"
110
- cells[2] += "<a href='javascript:' onclick=''>" + wrd + "</a>"
 
111
 
112
  table_md += "| " + " | ".join(cells) + " |\n"
113
  table_md += "</div>" # Close the RTL div
 
105
  cells = line.replace('_', '\\_').replace('|', '&#124;').replace(':', '&colon;').split('\t')
106
 
107
  wrd = cells[2]
108
+ if wrd != "_"
109
+ cells[2] = "<iframe src='https://freeali.se/freealise/translate/index.htm#gsc.q=" + wrd + "&gsc.tab=1&gsc.sort=' width='256' height='128'></iframe><br/>"
110
+ cells[2] += "<iframe src='https://freeali.se/freealise/translate/loader.htm?q=" + wrd + "' width='256' height='128'></iframe><br/>"
111
+ cells[2] += "<a href='javascript:' onclick=''>" + wrd + "</a>"
112
 
113
  table_md += "| " + " | ".join(cells) + " |\n"
114
  table_md += "</div>" # Close the RTL div