diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-05-14 21:36:01 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-05-14 21:36:01 -0700 |
commit | 3f37cc90470295c13214536662b9c54a5a48e047 (patch) | |
tree | c45c5458a7158bac600855267e02842a75af2c29 /pyblog | |
parent | 2011b92f4a75035c261686969a5b9376ad237570 (diff) | |
download | my_new_personal_website-3f37cc90470295c13214536662b9c54a5a48e047.tar.xz my_new_personal_website-3f37cc90470295c13214536662b9c54a5a48e047.zip |
add noscript tag for javascript embedded asciicast
Diffstat (limited to 'pyblog')
-rwxr-xr-x | pyblog | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -421,6 +421,8 @@ def _pre_tag_insert_line_numbers(soup, pre_tag): ln_tag["class"] = "line-number" ln_tag["data-line"] = line_number ln_tag["style"] = "top: %dpx" % ((line_number - 1) * CODE_LINE_HEIGHT) + # add a comment to the content of the span to suppress tidy5 + # empty <span> tag warning ln_tag.append(soup.new_string("", bs4.Comment)) pre_tag.code.append(ln_tag) |