Repository: beam-site
Updated Branches:
  refs/heads/asf-site af94ee216 -> 8d92f7155


Do not use BeautifulSoup prettify, which is known to corrupt HTML


Project: http://git-wip-us.apache.org/repos/asf/beam-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam-site/commit/5629dffb
Tree: http://git-wip-us.apache.org/repos/asf/beam-site/tree/5629dffb
Diff: http://git-wip-us.apache.org/repos/asf/beam-site/diff/5629dffb

Branch: refs/heads/asf-site
Commit: 5629dffb97c5072288722c6da70f29512ba1dca5
Parents: af94ee2
Author: Kenneth Knowles <[email protected]>
Authored: Fri May 26 09:45:45 2017 -0700
Committer: Dan Halperin <[email protected]>
Committed: Fri May 26 10:29:55 2017 -0700

----------------------------------------------------------------------
 .jenkins/append_index_html_to_internal_links.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam-site/blob/5629dffb/.jenkins/append_index_html_to_internal_links.py
----------------------------------------------------------------------
diff --git a/.jenkins/append_index_html_to_internal_links.py 
b/.jenkins/append_index_html_to_internal_links.py
index df55d59..d9d272f 100644
--- a/.jenkins/append_index_html_to_internal_links.py
+++ b/.jenkins/append_index_html_to_internal_links.py
@@ -66,7 +66,7 @@ for match in matches:
           a['href'] = hr + '/index.html'
         mf.close()
 
-        html = soup.prettify("utf-8")
+        html = unicode(soup).encode('utf-8')
         # Write back to the file.
         with open(match, "wb") as f:
           print 'Replacing ' + hr + ' with: ' + a['href']

Reply via email to