Skip to content

Commit

Permalink
guide修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeroblast committed Jul 24, 2021
1 parent 1fce526 commit 5fe2a63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EpubBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ void CreateIndexDoc()
{
try
{
int i = azw3.frag_table[g.num].file_num + 1;
int offset = extraCoverDocAdded ? 1 : 0;
int i = azw3.frag_table[g.num].file_num + offset;
guide += string.Format(" <li><a epub:type=\"{2}\" href=\"{1}\">{0}</a></li>\n", g.ref_name, Path.Combine("Text/", xhtml_names[i]), g.ref_type);
}
catch (Exception e)
Expand Down

0 comments on commit 5fe2a63

Please sign in to comment.