Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Recipe for TAOUP #11

Open
arnoesterhuizen opened this issue Apr 23, 2012 · 2 comments
Open

Problem with Recipe for TAOUP #11

arnoesterhuizen opened this issue Apr 23, 2012 · 2 comments

Comments

@arnoesterhuizen
Copy link

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.

@danchoi
Copy link
Owner

danchoi commented Apr 23, 2012

Thank you for letting me know. I'll try to fix this soon.

On Mon, Apr 23, 2012 at 10:53 AM, Arno Esterhuizen [email protected] wrote:

from: Arno Esterhuizen [email protected]
date: Mon, Apr 23 07:53 AM -07:00 2012
to: Daniel Choi [email protected]
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

@bmbeverst
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants