mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
generator: force longdesc to begin with uppercase
As contrast to shortdesc which is forced to begin with lowercase, this patch forces longdesc to begin with uppercase. Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
This commit is contained in:
committed by
Richard W.M. Jones
parent
7030635e51
commit
bd61f25625
@@ -157,7 +157,9 @@ let () =
|
||||
List.iter (
|
||||
fun { name = name; longdesc = longdesc } ->
|
||||
if longdesc.[String.length longdesc-1] = '\n' then
|
||||
failwithf "long description of %s should not end with \\n." name
|
||||
failwithf "long description of %s should not end with \\n." name;
|
||||
if longdesc.[0] <> Char.uppercase longdesc.[0] then
|
||||
failwithf "long description of %s should begin with uppercase." name
|
||||
) (all_functions @ fish_commands);
|
||||
|
||||
(* Check proc_nrs. *)
|
||||
|
||||
Reference in New Issue
Block a user