mirror of https://github.com/xemu-project/xemu.git
qapi: Use "not COND" instead of "!COND" for generated documentation
Generated documentation uses operators "and", "or", and "!". Change the latter to "not". Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210831123809.1107782-9-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
a7987799d1
commit
d0830ee443
|
@ -233,7 +233,7 @@ def cgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str:
|
|||
|
||||
def docgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str:
|
||||
# TODO Doc generated for conditions needs polish
|
||||
return gen_ifcond(ifcond, '%s', '!%s', ' and ', ' or ')
|
||||
return gen_ifcond(ifcond, '%s', 'not %s', ' and ', ' or ')
|
||||
|
||||
|
||||
def gen_if(cond: str) -> str:
|
||||
|
|
|
@ -174,7 +174,7 @@ Features
|
|||
If
|
||||
~~
|
||||
|
||||
"!(IFONE or IFTWO)"
|
||||
"not (IFONE or IFTWO)"
|
||||
|
||||
|
||||
Another subsection
|
||||
|
|
Loading…
Reference in New Issue