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