From 8c827f40e72c941bbc227960eeef32f1e20aac80 Mon Sep 17 00:00:00 2001 From: The Wobbler Date: Thu, 10 Apr 2025 11:35:13 +0200 Subject: [PATCH] Made the improved codeblock finder actually work. --- omg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omg.py b/omg.py index 7c86a5d..42d466e 100755 --- a/omg.py +++ b/omg.py @@ -104,7 +104,7 @@ class OMG: continue if "```" in line: # detect codeblocks and ignore everything inside it - if not "```" in line[line.find("```"):]: + if line.count("```") % 2: # odd count of "```" in line codeblock = not codeblock continue