Commits

Brian Mearns committed 4fcc18d

Fixed issue #21 - "Wrong href on nested notes."
Fixed the default latex template title.

Comments (0)

Files changed (2)

src/tome/res/template.latex.tmpl

     \normalsize\{#1\}\\
 \}
 \renewcommand\{\title\}[1]\{%
-    \Huge\{#1\}%
+    \Huge\{#1\}\\%
 \}
 
 \newcounter\{subtitlecnt\}

src/tome/writeEpub.py

                 chNum = str(self.__chIdx)
 
                 #Add a reference for the endnote to the content.
-                ostream.write("<a class='noteref' rel='footnote' id='ch{chNum}N{enNum}Ref' href='#ch{chNum}N{enNum}'>{enNum}</a>".format(
+                ostream.write("<a class='noteref' rel='footnote' id='ch{chNum}N{enNum}Ref' href='chapter{chUid}.xhtml#ch{chNum}N{enNum}'>{enNum}</a>".format(
                     chNum = chNum,
-                    enNum = enNum
+                    enNum = enNum,
+                    chUid = self.__chUid(self.__chIdx)
                 ))
 
                 #Now generate the content for the footnote.