warnings: do a line break before enabled/disabled note

We need to create a separate paragraph if the help text had used \c
anyway. Putting the enabled/disabled separately for all entries makes
it read a lot cleaner anyway.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2019-10-03 23:47:08 -07:00
parent 7ad824be7a
commit bef71a86b9
2 changed files with 1 additions and 2 deletions

View File

@ -1172,7 +1172,6 @@ is_expression:
*! \c KMOV WORD K0,[foo] ; Permitted, WORD K0 specifies instruction size
*! \c KMOV K0,WORD [foo] ; Permitted, WORD [foo] specifies instruction size
*! \c KMOV K0,[foo] ; Not permitted, instruction size ambiguous
*!-
*/
nasm_warn(WARN_REGSIZE, "invalid register size specification ignored");
}

View File

@ -255,7 +255,7 @@ if ($what eq 'c') {
@doc = @{$warn->{doc}};
if (defined($docdef)) {
push(@doc, "$docdef by default.\n");
push(@doc, "\n", "\\> $docdef by default.\n");
}
}