Fix up manual_pattern sig
This commit is contained in:
parent
73a744ad89
commit
772b46dfea
1 changed files with 5 additions and 3 deletions
|
@ -206,9 +206,11 @@ def fixup_pattern(do_sig, root_data, page):
|
||||||
patterns = page["patterns"]
|
patterns = page["patterns"]
|
||||||
if not isinstance(patterns, list): patterns = [patterns]
|
if not isinstance(patterns, list): patterns = [patterns]
|
||||||
if do_sig:
|
if do_sig:
|
||||||
inp = page.get("input", None) or "nothing"
|
inp = page.get("input", None) or ""
|
||||||
oup = page.get("output", None) or "nothing"
|
oup = page.get("output", None) or ""
|
||||||
page["header"] += f" ({inp} \u2192 {oup})"
|
pipe = f"{inp} \u2192 {oup}".strip()
|
||||||
|
suffix = f" ({pipe})" if inp or oup else ""
|
||||||
|
page["header"] += suffix
|
||||||
page["op"] = [(p["signature"], p["startdir"], False) for p in patterns]
|
page["op"] = [(p["signature"], p["startdir"], False) for p in patterns]
|
||||||
|
|
||||||
def fetch_recipe(root_data, recipe):
|
def fetch_recipe(root_data, recipe):
|
||||||
|
|
Loading…
Reference in a new issue