From b17c34142c23ca4a5810c9ae144e5cab5b2116c2 Mon Sep 17 00:00:00 2001 From: Zergling_man Date: Fri, 29 Oct 2021 05:53:01 +1100 Subject: [PATCH] Right, HTML. --- books/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/books/views.py b/books/views.py index 9b727df..05cd3db 100644 --- a/books/views.py +++ b/books/views.py @@ -59,4 +59,5 @@ def book(bookurl): def chapter(bookurl,chapnum): book=models.Book.objects.filter(url=bookurl)[0] chapter=models.Chapter.objects.filter(book=book,number=int(chapnum))[0] + text='

'+chapter.contents.replace('<','<').replace('>','>').replace('\n\n','

').replace('\n','
')+'

' return {'title':chapter,'content':'

Navigation buttons will come later...

\n'+chapter.contents,'date':chapter.added} \ No newline at end of file