Optimized fish literate programming

This commit is contained in:
Lucien Cartier-Tilet 2020-02-24 21:44:38 +01:00
parent 56e655f0c8
commit 8e9d55d7de
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -215,8 +215,8 @@
#+BEGIN_SRC python :var table=[] :exports none #+BEGIN_SRC python :var table=[] :exports none
result = '' result = ''
for abbr in table: for abbr in table:
result += "abbr {0} '{1}'\n".format(abbr[0], abbr[1].replace("\\vert{}", "|").replace("\\vert", "|")) result += "abbr {0} '{1}'\n".format(abbr[0], abbr[1])
return result return result.replace("\\vert{}", "|").replace("\\vert", "|")
#+END_SRC #+END_SRC
** System monitoring ** System monitoring