mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-06-22 16:26:09 +01:00
utils/doc: Add function to generate a line break
This commit is contained in:
@ -298,6 +298,11 @@ def underline(text, symbol='='):
|
|||||||
return '{}\n{}\n\n'.format(text, symbol * len(text))
|
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):
|
def get_rst_from_plugin(plugin):
|
||||||
text = underline(plugin.name, '-')
|
text = underline(plugin.name, '-')
|
||||||
if hasattr(plugin, 'description'):
|
if hasattr(plugin, 'description'):
|
||||||
|
Reference in New Issue
Block a user