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:
parent
7cb11f66cf
commit
a0dfac78c3
@ -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'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user