Change min > max notation to [min, max] in Parameters Markdown (#19911)

* Change min > max notation to [min, max] in Parameters Markdown

* Update src/lib/parameters/px4params/markdownout.py

Co-authored-by: Thomas Stastny <thomas.stastny@auterion.com>

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Thomas Stastny <thomas.stastny@auterion.com>
This commit is contained in:
Junwoo Hwang 2022-07-14 01:13:49 +02:00 committed by GitHub
parent a2f83269e9
commit 1a620b450d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -28,8 +28,8 @@ table {
}
</style>
"""
)
"""
)
for group in groups:
result += '## %s\n\n' % group.GetName()
@ -37,7 +37,7 @@ table {
"""<table>
<colgroup><col style="width: 23%"><col style="width: 46%"><col style="width: 11%"><col style="width: 11%"><col style="width: 9%"></colgroup>
<thead>
<tr><th>Name</th><th>Description</th><th>Min > Max (Incr.)</th><th>Default</th><th>Units</th></tr>
<tr><th>Name</th><th>Description</th><th>[Min, Max] (Incr.)</th><th>Default</th><th>Units</th></tr>
</thead>
<tbody>
"""
@ -68,7 +68,7 @@ table {
min_val='?'
if not max_val:
max_val='?'
max_min_combined+='%s > %s ' % (min_val, max_val)
max_min_combined+='[%s, %s] ' % (min_val, max_val)
if increment:
max_min_combined+='(%s)' % increment