From 8e9d55d7decc032c53850dd36c8bcf61e5f33563 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 24 Feb 2020 21:44:38 +0100 Subject: [PATCH] Optimized fish literate programming --- org/config/fish.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org/config/fish.org b/org/config/fish.org index bf2fc41..dec2970 100644 --- a/org/config/fish.org +++ b/org/config/fish.org @@ -215,8 +215,8 @@ #+BEGIN_SRC python :var table=[] :exports none result = '' for abbr in table: - result += "abbr {0} '{1}'\n".format(abbr[0], abbr[1].replace("\\vert{}", "|").replace("\\vert", "|")) - return result + result += "abbr {0} '{1}'\n".format(abbr[0], abbr[1]) + return result.replace("\\vert{}", "|").replace("\\vert", "|") #+END_SRC ** System monitoring