1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 20:09:11 +00:00

utils/doc: Add function to generate a line break

This commit is contained in:
Marc Bonnici 2018-04-27 14:01:25 +01:00 committed by setrofim
parent 7cb11f66cf
commit a0dfac78c3

View File

@ -298,6 +298,11 @@ def underline(text, symbol='='):
return '{}\n{}\n\n'.format(text, symbol * len(text))
def line_break(length=10, symbol='-'):
"""Insert a line break"""
return '\n{}\n\n'.format(symbol * length)
def get_rst_from_plugin(plugin):
text = underline(plugin.name, '-')
if hasattr(plugin, 'description'):