This is a fix for migrating certain content appearing in Principles of Computing course, which makes extensive use of inline code formatting, including some where inline code-styled text (e.g. variable names) is intermixed with other text content within table headers. These were getting turned into block code elements. The general fix is to respect the style="inline" attribute of the legacy code element.
This also takes steps to preserve whitespace within th elements in the same was as is done for table cells (td), so that, for example <th><code style="inline">a</code> (initially 18)</th> will preserve the space before "(initially".
This is a fix for migrating certain content appearing in Principles of Computing course, which makes extensive use of inline code formatting, including some where inline code-styled text (e.g. variable names) is intermixed with other text content within table headers. These were getting turned into block code elements. The general fix is to respect the
style="inline"
attribute of the legacycode
element.This also takes steps to preserve whitespace within
th
elements in the same was as is done for table cells (td
), so that, for example<th><code style="inline">a</code> (initially 18)</th>
will preserve the space before "(initially".