1👍
✅
Just do the truncation in your python script:
first_char_list = [x[0] for x in com_list if len(x)]
this will produce list of characters (without the ...
, you are cutting it anyway) and just pass it to render
. this will also simplify your html (you can just use {{i}}
Source:stackexchange.com