From f7c5354b68e770ae317d3a8709c5ba0ed795efe8 Mon Sep 17 00:00:00 2001 From: UlrichB22 <97119703+UlrichB22@users.noreply.github.com> Date: Tue, 10 Sep 2024 21:02:07 +0200 Subject: [PATCH] moinwiki_in.py: ignore the closing stroke tag if no opening tag found --- src/moin/converters/moinwiki_in.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/moin/converters/moinwiki_in.py b/src/moin/converters/moinwiki_in.py index 86f6ee3f0..b6519f413 100644 --- a/src/moin/converters/moinwiki_in.py +++ b/src/moin/converters/moinwiki_in.py @@ -2,6 +2,7 @@ # Copyright: 2006-2008 MoinMoin:ThomasWaldmann # Copyright: 2007 MoinMoin:ReimarBauer # Copyright: 2008-2010 MoinMoin:BastianBlank +# Copyright: 2024 MoinMoin:UlrichB # License: GNU GPL v2 (or any later version), see LICENSE.txt for details. """ @@ -646,10 +647,9 @@ def inline_size_repl(self, stack, size, size_begin=None, size_end=None): """ def inline_strike_repl(self, stack, strike, strike_begin=None): + """Ignore the closing stroke tag if no opening tag found""" if strike_begin is not None: stack.push(moin_page.del_()) - else: - stack.pop() inline_subscript = r""" (?P