From 9120d47a83be4e799a303b703f783b36eb3fd29f Mon Sep 17 00:00:00 2001 From: Gareth Aneurin Tribello Date: Sun, 5 May 2024 11:19:25 +0100 Subject: [PATCH] Fixed bug for shortcuts that are one line long --- PlumedToHTML/PlumedToHTML.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlumedToHTML/PlumedToHTML.py b/PlumedToHTML/PlumedToHTML.py index 15cfdc6..96a691b 100644 --- a/PlumedToHTML/PlumedToHTML.py +++ b/PlumedToHTML/PlumedToHTML.py @@ -309,7 +309,7 @@ def resolve_includes( srcdir, inpt, foundfiles ) : def resolve_expansions( inpt, jsondata ) : # Stop expanding if we have reached the bottom - if len(jsondata.keys())==0 : return inpt + if len(jsondata.keys())==0 : return inpt + "\n" incontinuation, final_inpt, clines = False, "", "" for line in inpt.splitlines() :