javiereguiluz/easybook — pull request #86 by magabriel (2012-10-19 15:00:54+00:00)
Title: Fix generated epub file

## Generate unique id for custom css in content.opf

Books in epub format using several css files must list all of them in content.opf with unique ids, in order to be correctly recognized by epub readers and editors. Validator in http://validator.idpf.org/ shows the problem. Also, Sigil editor (http://code.google.com/p/sigil/) chokes with the generated file.

This fix just assigns a different id to the custom stylesheet from the normal easybook.css.

## Avoid creating an extra folder into zip file

When creating the compressed epub file, an extra folder was being created with the name of the temp dir. It is both useless and erroneous (http://validator.idpf.org/ reports the error).