Commit 607fbb2b authored by Mario Chirinos's avatar Mario Chirinos

paragraphs

parent db804612
...@@ -288,6 +288,10 @@ def newsDetails(request, newsId): ...@@ -288,6 +288,10 @@ def newsDetails(request, newsId):
word = news.text[index:index+txtlen] word = news.text[index:index+txtlen]
print(word) print(word)
news.text = news.text.replace(word, "<b>"+word+"</b>") news.text = news.text.replace(word, "<b>"+word+"</b>")
paragraphs = news.text.split(". \n")
paragraphs = ["<p>" + p + "</p>" for p in paragraphs]
news.text = "".join(paragraphs)
return render(request,'new/newsDetails.html',{"form":form,"news":news}) return render(request,'new/newsDetails.html',{"form":form,"news":news})
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
def wsAudioList(request, publisher, start, end): def wsAudioList(request, publisher, start, end):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment