diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-12-27 16:54:38 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-12-27 16:54:38 +0000 |
commit | 2e62f3c7d4ab216febec4df72a7622bdf6f5ca2b (patch) | |
tree | ecf2ed49786ae2a2e36c0f69d23a2fe0ddd9aca0 /core/views/expo.py | |
parent | 2b97c8f7839e127f80d367810a2578cb920c5c29 (diff) | |
download | troggle-2e62f3c7d4ab216febec4df72a7622bdf6f5ca2b.tar.gz troggle-2e62f3c7d4ab216febec4df72a7622bdf6f5ca2b.tar.bz2 troggle-2e62f3c7d4ab216febec4df72a7622bdf6f5ca2b.zip |
retain newline in body but replace \r
Diffstat (limited to 'core/views/expo.py')
-rw-r--r-- | core/views/expo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py index f6cd76e..a151a4d 100644 --- a/core/views/expo.py +++ b/core/views/expo.py @@ -476,7 +476,7 @@ def editexpopage(request, path): bodyargs = "" postbody = "</html>\n" body = pageform.cleaned_data["html"] - body = body.replace("\r", "") + body = body.replace("\r", "\n") result = f"{preheader}<head{headerargs}>{head}</head>{postheader}<body{bodyargs}>\n{body}</body>{postbody}" if not filefound or result != html: # Check if content changed at all |