

def visit_literal(self, node):
    classes = node.get('classes', [])
    if ('code' in classes):
        node['classes'] = [cls for cls in classes if (cls != 'code')]
        self.body.append(self.starttag(node, 'code', ''))
        return
    self.body.append(self.starttag(node, 'code', '', CLASS='docutils literal'))
    text = node.astext()
    for token in self.words_and_spaces.findall(text):
        if token.strip():
            if self.sollbruchstelle.search(token):
                self.body.append(('<span class="pre">%s</span>' % self.encode(token)))
            else:
                self.body.append(self.encode(token))
        elif (node in ('\n', ' ')):
            self.body.append(token)
        else:
            self.body.append((('&nbsp;' * (len(token) - 1)) + ' '))
    self.body.append('</code>')
    raise nodes.SkipNode

dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/_release.py _ReleaseNotesTranslator.visit_literal/VarMisuse@179/222 `token`->`node`