From 394e652e0ec32647843ba5cb6d224755495cd2a8 Mon Sep 17 00:00:00 2001 From: kitoy Date: Fri, 20 Mar 2026 15:18:16 +0100 Subject: [PATCH] Correct rstrip bug --- views/blog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/blog.py b/views/blog.py index 109992f..903d41f 100644 --- a/views/blog.py +++ b/views/blog.py @@ -34,7 +34,7 @@ MARKDOWN_EXT=["extra", "toc", "codehilite", def new_article(): user = '%s'% escape(session['username']) if request.method == 'POST': - title = str(request.form['title']).rstrip() + title = str(request.form['title'].rstrip()) subtitle = str(request.form['subtitle']) category = str(request.form['category']) content = str(request.form['content'])