View Single Post
Old 08-22-2017, 09:34 PM   #222
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,677
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I told you exactly where the problem lies. It's in formatImages(). Was I unclear? You're using bs4 to parse single lines of an xhtml file with the assumption that they will always be self-contained, well-formed snippets of xhtml. Doing so will cause data-loss when it is not. The problematic line of code in LHS.xhtml will not parse without data-loss. In this case, the closing div tag in question gets clobbered.

Last edited by DiapDealer; 08-22-2017 at 09:40 PM.
DiapDealer is online now   Reply With Quote