Answer the question
In order to leave comments, you need to log in
How to extract text containing line breaks from sqlite database?
cur.execute("SELECT spamsg FROM addons")
spmmsg=cur.fetchall()
spmmsg1=str(spmmsg)
Answer the question
In order to leave comments, you need to log in
\n in python is a newline character, so when you output to the console, you will be fine. Try print(spmmsg[0])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question