mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed #31025 -- Fixed highlightlinenothreshold deprecation warning on Sphinx 1.8+.
This commit is contained in:
parent
85c5989007
commit
89d41cba39
@ -254,10 +254,7 @@ def visit_console_html(self, node):
|
||||
self.body.append('<section class="c-content-win" id="c-content-%(id)s-win">\n' % {'id': uid})
|
||||
win_text = node['win_console_text']
|
||||
highlight_args = {'force': True}
|
||||
if 'linenos' in node:
|
||||
linenos = node['linenos']
|
||||
else:
|
||||
linenos = win_text.count('\n') >= self.highlightlinenothreshold - 1
|
||||
linenos = node.get('linenos', False)
|
||||
|
||||
def warner(msg):
|
||||
self.builder.warn(msg, (self.builder.current_docname, node.line))
|
||||
|
Loading…
Reference in New Issue
Block a user