From 4782f3b184ffcabcb24661aa188c8a49ab3ae1fc Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 2 May 2021 22:47:59 +0100 Subject: fixed test mistake & bug in Edit This --- core/views/expo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/views/expo.py') diff --git a/core/views/expo.py b/core/views/expo.py index b454df9..4b7e378 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -135,7 +135,7 @@ def expowebpage(request, expowebpath, path): title, = m.groups() else: title = "" - m = re.search(r"]*)noedit", head, re.DOTALL + re.IGNORECASE) + m = re.search(r"^]*)noedit", head, re.DOTALL + re.IGNORECASE) if m: editable = False else: @@ -325,6 +325,4 @@ class ExpoPageForm(forms.Form): '''The form used by the editexpopage function ''' title = forms.CharField(widget=forms.TextInput(attrs={'size':'60'})) - - #html = forms.CharField(widget=TinyMCE(attrs={'cols': 80, 'rows': 20})) html = forms.CharField(widget=forms.Textarea(attrs={"cols":80, "rows":20})) -- cgit v1.2.3