Skip to content

Commit

Permalink
Merge pull request #1757 from UlrichB22/fix_stroke
Browse files Browse the repository at this point in the history
moinwiki_in.py: ignore the closing stroke tag if no opening tag found
  • Loading branch information
RogerHaase authored Sep 10, 2024
2 parents 90436ac + f7c5354 commit d66832b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/moin/converters/moinwiki_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

"""
Expand Down Expand Up @@ -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<subscript>
Expand Down

0 comments on commit d66832b

Please sign in to comment.