Quote:
Originally Posted by yoss15
How do I properly indent it? Hitting tab seems to send it way to far but even with 1-5 spaces it still gives errors, I just don't understand it.
|
Don't use any tabs - all spaces. For any part of the code, you indent each line the same. PeterT's indents look correct to me. I prefer running my recipe like this:
Code:
ebook-convert _Test_1.recipe _Test_1 --test -vv > _Test.txt
That runs my _Test1.recipe file and puts the html produced by my recipe into the _Test folder and all of my print statements and verbose comments into the_Test.txt file. I use underscores so those files are all at the top of my directory list and I keep the recipe and text output (_Test.txt) files open in my editor at all times. I also have a batch file that runs the line above. I run the file, read the output file to see any errors or print statement output, then revise and run again.