You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have add some lines after line 112 to generate a TXT file with html code. After that, I open the html. Unfortunetly, the html is messed up, with excess of classes and it is impossible to convert to EPUB... But I believe you are in the right way. If you change my lines, you can generate a good and clean html file and with Calibre it will be possible to convert to EPUB. # render page content = f'<style>{style}{font_style}</style>{html}' render_page.set_content(content) arquivo = open('musica.txt', 'r', encoding='utf-8') conteudo = arquivo.readlines() conteudo.append(content) arquivo = open('musica.txt', 'w', encoding='utf-8') arquivo.writelines(conteudo) arquivo.close()
The text was updated successfully, but these errors were encountered:
I have add some lines after line 112 to generate a TXT file with html code. After that, I open the html. Unfortunetly, the html is messed up, with excess of classes and it is impossible to convert to EPUB... But I believe you are in the right way. If you change my lines, you can generate a good and clean html file and with Calibre it will be possible to convert to EPUB.
# render page content = f'<style>{style}{font_style}</style>{html}' render_page.set_content(content) arquivo = open('musica.txt', 'r', encoding='utf-8') conteudo = arquivo.readlines() conteudo.append(content) arquivo = open('musica.txt', 'w', encoding='utf-8') arquivo.writelines(conteudo) arquivo.close()
The text was updated successfully, but these errors were encountered: