interpret linebreak. fixes #42
This commit is contained in:
parent
3c0412a4ff
commit
9249e00152
1 changed files with 3 additions and 1 deletions
|
@ -29,8 +29,10 @@ from feed2toot.tootpost import TootPost
|
||||||
def build_message(entrytosend, tweetformat, rss):
|
def build_message(entrytosend, tweetformat, rss):
|
||||||
'''populate the rss dict with the new entry'''
|
'''populate the rss dict with the new entry'''
|
||||||
tweetwithnotag = tweetformat.format(**entrytosend)
|
tweetwithnotag = tweetformat.format(**entrytosend)
|
||||||
|
# replace line breaks
|
||||||
|
tootwithlinebreaks = tweetwithnotag.replace('\\n', '\n')
|
||||||
# remove duplicates from the final tweet
|
# remove duplicates from the final tweet
|
||||||
dedup = RemoveDuplicates(tweetwithnotag)
|
dedup = RemoveDuplicates(tootwithlinebreaks)
|
||||||
# only append hashtags if they exist
|
# only append hashtags if they exist
|
||||||
# remove last tags if tweet too long
|
# remove last tags if tweet too long
|
||||||
if 'hashtags' in rss:
|
if 'hashtags' in rss:
|
||||||
|
|
Loading…
Reference in a new issue