parameters: (self, contents, index)
docstring: Modify the super- and subscript to appear vertically aligned.
docstring_summary: Modify the super- and subscript to appear vertically aligned.
docstring_tokens: Modify the super - and subscript to appear vertically aligned .
function: def modifyscripts(self, contents, index):
      "Modify the super- and subscript to appear vertically aligned."
      subscript = self.getscript(contents, index)
      # subscript removed so instead of index + 1 we get index again
      superscript = self.getscript(contents, index)
      scripts = TaggedBit().complete([superscript, subscript], 'span class="scripts"')
      contents.insert(index, scripts)
function_tokens: def modifyscripts ( self , contents , index ) : subscript = self . getscript ( contents , index ) # subscript removed so instead of index + 1 we get index again superscript = self . getscript ( contents , index ) scripts = TaggedBit ( ) . complete ( [ superscript , subscript ] , 'span class="scripts"' ) contents . insert ( index , scripts )