killercup / trpl-ebook

UNMAINTAINED
http://killercup.github.io/trpl-ebook/
478 stars 56 forks source link

Oddly formatted note dissapears in conversion #13

Closed cers closed 9 years ago

cers commented 9 years ago

A little above http://doc.rust-lang.org/book/the-stack-and-the-heap.html#arguments-and-borrowing you see the text "[moving]" where all but the first "[" is sup, which seems to refer to a note a little below:

[moving]: We can make the memory live longer by transferring ownership, sometimes called ‘moving out of the box’. More complex examples will be covered later.

In the PDF (A4, page 64), the reference appears as "[ˆmoving]", and the note I quoted above has gone missing.

killercup commented 9 years ago

I believe this was a formatting error in the stable version of the book. If you look at http://doc.rust-lang.org/nightly/book/the-stack-and-the-heap.html#arguments-and-borrowing (with nightly/), the [moving] block became the footnote at the end of the page.

This is still a bug in the PDF version, though, because the footnote does not work.

killercup commented 9 years ago

Thanks for reporting this. I totally forgot the special format footnotes had when writing the adjustments for the reference names. I'll publish a new PDF version once #14 is resolved.