From 254b465755f7ebfc1650730ac2d51bb33543a85c Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 3 May 2021 00:52:51 +0100 Subject: [PATCH] git integration with Save this page --- core/views/expo.py | 15 +++++++++++---- core/views/other.py | 8 ++++---- settings.py | 4 +++- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/core/views/expo.py b/core/views/expo.py index 4b7e378..9ff533b 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -1,5 +1,6 @@ import os import re +import subprocess from pathlib import Path from urllib.parse import urljoin, unquote as urlunquote from urllib.request import urlopen @@ -276,7 +277,6 @@ def editexpopage(request, path): # if re.search(r"iso-8859-1", html): # body = str(body, "iso-8859-1") else: - #return HttpResponse("Page could not be split into header and body") return HttpResponse(default_head + html + '

HTML Parsing failure:
Page could not be parsed into header and body:
failure detected in expowebpage in views.expo.py

Please edit this :expoweb: page to be in the expected full HTML format .