From e34deb4b28f7c7ef92860d8df36340d17039526d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 6 Nov 2024 10:20:23 +0000 Subject: [PATCH] Less indentation --- content.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/content.py b/content.py index 5fa6e136e..535cf6986 100644 --- a/content.py +++ b/content.py @@ -124,14 +124,15 @@ def _remove_quotes_within_quotes(content: str) -> str: quoted_str = content.split('
', ctr)[1] if '
' not in quoted_str: found = False - else: - end_str = quoted_str.split('')[1] - quoted_str = quoted_str.split('')[0] - if '
' not in end_str: - found = False - if '
' in quoted_str: - quoted_str = quoted_str.replace('
', '') - content = prefix + quoted_str + '
' + end_str + continue + + end_str = quoted_str.split('
')[1] + quoted_str = quoted_str.split('
')[0] + if '
' not in end_str: + found = False + if '
' in quoted_str: + quoted_str = quoted_str.replace('
', '') + content = prefix + quoted_str + '
' + end_str ctr += 1 return content