Skip to content

Commit

Permalink
Prevent unused constants
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Jun 22, 2023
1 parent 6556242 commit eb9829b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sphinxnotes/lilypond/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,12 @@ def html_visit_lily_node(self, node:lily_inline_node|lily_outline_node):

# Create div for block level element
if isinstance(node, lily_outline_node):
self.body.append(self.starttag(node, 'div', CLASS='lilypond'))
self.body.append(self.starttag(node, 'div', CLASS=_DIVCLS))
self.body.append('<p>')

if node.get('audio') and out.audio and node.get('controls') == 'top':
self.body.append('<audio controls class="%s" style="%s" src="%s" %s>\n' %
(_SCORECLS, 'width:100%;', out.audio, 'loop' if node.get('loop') else ''))
(_AUDIOCLS, 'width:100%;', out.audio, 'loop' if node.get('loop') else ''))
self.body.append('</audio>')

# TODO: standalone css
Expand Down

0 comments on commit eb9829b

Please sign in to comment.