Problem with Recipe for TAOUP
arnoesterhuizen opened this issue · 2 comments
I was reading The Art of Unix Programming, and I noticed that in Chapter 1, section 6 that parts of the text is omitted; specifically the rules quoted from "Notes on C Programming", and other blockquoted sections.
Compare http://www.catb.org/~esr/writings/taoup/html/ch01s06.html with the book generated by kindlefodder.
Thank you for letting me know. I'll try to fix this soon.
On Mon, Apr 23, 2012 at 10:53 AM, Arno Esterhuizen reply@reply.github.com wrote:
from: Arno Esterhuizen reply@reply.github.com
date: Mon, Apr 23 07:53 AM -07:00 2012
to: Daniel Choi dhchoi@gmail.com
subject: [kindlefodder] Problem with Recipe for TAOUP (#11)I was reading The Art of Unix Programming, and I noticed that in Chapter 1, section 6 that parts of the text is omitted; specifically the rules quoted from "Notes on C Programming", and other blockquoted sections.
Compare http://www.catb.org/~esr/writings/taoup/html/ch01s06.html with the book generated by kindlefodder.
Reply to this email directly or view it on GitHub:
#11
My Ruby skill are nonexistent. I read the code and figured out how to manually generate a .modi file. Then I found the messed up blockquotes in /src/unix/sections/ by searching for "
The problem is in:
# extract content out of table.blockquote
item.search("div.blockquote").each {|x|
x.inner_html = "<blockquote>" + x.search("td").map {|td| td.inner_html}.join("\n") + "</blockquote>"
}
Instead of only copying text from a Table Element(tb). This needs to be changed to copy text if there is no table as well.
Link to the fixed modi: https://dl.dropboxusercontent.com/u/6065640/unix.2014-05-17.mobi