From 7930b952115c639824ff889a7d3acd2a8987118f Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 8 Jan 2021 11:45:55 +0100 Subject: [PATCH] ops --- core/support.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/core/support.py b/core/support.py index 4b4cb56f..7358d100 100755 --- a/core/support.py +++ b/core/support.py @@ -815,49 +815,48 @@ def typo(string, typography=''): string = string typography.lower() - if 'capitalize' in typography: string = string.capitalize() - typography.replace('capitalize', '') + typography = typography.replace('capitalize', '') if 'uppercase' in typography: string = string.upper() - typography.replace('uppercase', '') + typography = typography.replace('uppercase', '') if 'lowercase' in typography: string = string.lower() - typography.replace('lowercase', '') + typography = typography.replace('lowercase', '') if '[]' in typography: string = '[' + string + ']' - typography.replace('[]', '') + typography = typography.replace('[]', '') if '()' in typography: string = '(' + string + ')' - typography.replace('()', '') + typography = typography.replace('()', '') if 'submenu' in typography: if VLT: string = "•• " + string else: string = string - typography.replace('submenu', '') + typography = typography.replace('submenu', '') if 'color kod' in typography: string = '[COLOR ' + kod_color + ']' + string + '[/COLOR]' - typography.replace('color kod', '') + typography = typography.replace('color kod', '') elif 'color' in typography: color = scrapertools.find_single_match(typography, 'color ([a-zA-Z0-9]+)') string = '[COLOR ' + color + ']' + string + '[/COLOR]' - typography.replace('color ' + color, '') + typography = typography.replace('color ' + color, '') if 'bold' in typography: string = '[B]' + string + '[/B]' - typography.replace('bold', '') + typography = typography.replace('bold', '') if 'italic' in typography: string = '[I]' + string + '[/I]' - typography.replace('italic', '') + typography = typography.replace('italic', '') if '_' in typography: string = ' ' + string typography.replace('_', '') if '--' in typography: string = ' - ' + string - typography.replace('--', '') + typography = typography.replace('--', '') if 'bullet' in typography: if VLT: string = '[B]' + "•" + '[/B] ' + string else: string = string - typography.replace('bullet', '') + typography = typography.replace('bullet', '') typography = typography.strip() if typography: string = string + '{' + typography + '}' return string