Quote:
Originally Posted by JimmXinu
Unless it's an error that's common on the site, I wouldn't feel any obligation to work too hard correcting for one author's bad html.
|
I tend to agree. I haven't seen another error like it. I don't think it is the site code adding the </div> in the wrong place. It looks like the author has done a cut-and-paste from somewhere and included an extra line. Detecting that the chapter text is empty after stripping the site navigation stuff isn't hard. I think the best that would be to either write a message into the text that something went wrong or throw an exception. The first means that any good parts of the story are downloaded, the second means that nothing is downloaded but the user finds out immediately. I'm not sure which would be the preferred behaviour.
Quote:
Originally Posted by Robin42069
i guess since it looked like it worked i didnt look into it more thoroughly.thanks for the heads up. i'm sure i would had figured it out later and wondered what the hell was wrong with it. lol
|
Yes, when you got to the blank chapter!