Shaltiel commited on
Commit
1ae6640
·
1 Parent(s): 02a3276

escaped colon

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ if sentence:
92
  table_md += "| " + " | ".join(["---"]*10) + " |\n"
93
  for line in ud_output[2:]:
94
  # Each UD line as a table row
95
- cells = line.replace('_', '\\_').replace('|', '|').split('\t')
96
  table_md += "| " + " | ".join(cells) + " |\n"
97
  table_md += "</div>" # Close the RTL div
98
  print(table_md)
 
92
  table_md += "| " + " | ".join(["---"]*10) + " |\n"
93
  for line in ud_output[2:]:
94
  # Each UD line as a table row
95
+ cells = line.replace('_', '\\_').replace('|', '&#124;').replace(':', '&colon;').split('\t')
96
  table_md += "| " + " | ".join(cells) + " |\n"
97
  table_md += "</div>" # Close the RTL div
98
  print(table_md)