It (likely) can’t be achieved using https://github.com/jdum/odfdo/blob/master/recipes/search_and_replace_words.py
body.replace("MAIN_TEXT", """ some multiline nn text """)
this just replaces the text with some multiline text
. How to replace the text including spaces greater than 1 and new lines, so it will be:
some multiline text
Денис is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.