I have computer source code examples in a large document intended to be an .epub book. The source code is inside of frames, and has style frame contents. The .odt .docx and .pdf all look fine, but the .epub export removes the leading spaces from every line.
This inside a frame, using a monospaced font:
int main( ){
printf("hello!")
if ( you == good ){
printf("blessings to you all!")
}
}
Turns into this in the exported to .epub file:
main( ){
printf("hello!")
if ( you == good ){
printf("blessings to you all!")
}
}
I tried pulling the .odt into Calibre but Calibre crashes when convert to epub is selected. I tried saving as .docx but converting to .epub then has line breaks in it where there were page breaks in the .odt file.