From a9d6be89bb599c2543140432d4696d68055c5139 Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Mon, 13 Jan 2025 15:24:46 +0100
Subject: [PATCH] FIX: fix problem remove "\\" -> with the residu "\" -> i
 don't know why it does that -> "nf-core/imcyto" has that

---
 src/code_.py    | 1 +
 src/constant.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/code_.py b/src/code_.py
index 5db4f1b..6e45913 100644
--- a/src/code_.py
+++ b/src/code_.py
@@ -16,6 +16,7 @@ class Code:
         #I do this just to avoid out of file problems later on
         self.code = '\n'+self.code+'\n'
         self.code_wo_comments = remove_comments(self.code)
+        self.code_wo_comments = re.sub(constant.DOUBLE_BACKSLAPSH_JUMP, ' ', self.code_wo_comments)
         self.code_wo_comments = re.sub(constant.BACKSLAPSH_JUMP, ' ', self.code_wo_comments)
         self.code_wo_comments = self.code_wo_comments.replace("||", "$OR$")
 
diff --git a/src/constant.py b/src/constant.py
index a53afee..c8a56f6 100644
--- a/src/constant.py
+++ b/src/constant.py
@@ -75,6 +75,7 @@ HEADER_FUNCTION = r"(def)\s*(\w+)\s*\([^,)]*(,[^,)]+)*\)\s*{"
 
 #         GENERAL
 #--------------------------
+DOUBLE_BACKSLAPSH_JUMP = r"\\\\\s*\n\s*"
 BACKSLAPSH_JUMP = r"\\\s*\n\s*"
 JUMP_DOT = r"\s*\n\s*\."
 NUMBER = r"\d+"
-- 
GitLab