The issue is that the process_tables() function adds the tag <div class='horizontal-scroll'> before any instances of <table>. This inadvertantly breaks the Javascript that Glimma inserts into the page, by including some unexpected quotes. Even if we change the quote type, adding this extra div is almost certainly not correct.
This patch means the additional div is only inserted around <table> tags that are part of the HTML body and not in the head.
This addresses #97
The issue is that the
process_tables()
function adds the tag<div class='horizontal-scroll'>
before any instances of<table>
. This inadvertantly breaks the Javascript that Glimma inserts into the page, by including some unexpected quotes. Even if we change the quote type, adding this extra div is almost certainly not correct.This patch means the additional div is only inserted around
<table>
tags that are part of the HTML body and not in the head.