From 457c3fcb1e30d9e465cbaff9ea857d52a4a95e3c Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 7 May 2016 10:57:14 +0200 Subject: [PATCH] schema_get_type_text: return format_description if available --- src/PVE/PodParser.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/PodParser.pm b/src/PVE/PodParser.pm index 116cc25..4f2868a 100644 --- a/src/PVE/PodParser.pm +++ b/src/PVE/PodParser.pm @@ -104,6 +104,8 @@ sub schema_get_type_text { if ($phash->{typetext}) { return $phash->{typetext}; + } elsif ($phash->{format_description}) { + return "<$phash->{format_description}>"; } elsif ($phash->{enum}) { return "(" . join(' | ', sort @{$phash->{enum}}) . ")"; } elsif ($phash->{pattern}) { -- 2.39.2