View Single Post
Old 07-13-2020, 02:53 PM   #3
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,195
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by ebulerdo View Post
Hi All,

Not sure if this is a bug or something I'm doing wrong. The epub file I am preparing has an endnotes file that I'd rather hide from the contents.

I found that you can do this by editing the <spine> section of the contents.opf file, and adding "linear=no" to the itemref in question. I know many apps ignore the "linear=no" setting, I don't care too much. If it works it works, if not the reader will just see a list of endnotes.

So I edit that file and type:
<itemref idref="id27" linear=no />
I save it, and when I open it again that line is changed to:
<itemref idref="id27"/>no /&gt;

Why does Calibre Editor change my code? How can I prevent it?

I am using Calibre 4.20 on a Windows 10 Home.

Thank you!
Quote:
Originally Posted by phossler View Post
Try no in quotes:

Code:
<itemref idref="id27" linear="no" />
phossler is correct.

See:

https://github.com/jgm/pandoc/issues/1593

bernie
gbm is offline   Reply With Quote