Merge "avoid trailing space in sphinxext log output"

This commit is contained in:
Zuul 2018-10-10 18:14:22 +00:00 committed by Gerrit Code Review
commit 83d2881b43
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ class ShowOptionsDirective(rst.Directive):
for count, line in enumerate(_format_option_help(
namespaces, split_namespaces)):
result.append(line, source_name, count)
LOG.debug(' '.join(['%5d' % (count), line]))
LOG.debug('%5d%s%s', count, ' ' if line else '', line)
node = nodes.section()
node.document = self.state.document