projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
825247b
)
schema_get_type_text: return format_description if available
author
Dietmar Maurer
<dietmar@proxmox.com>
Sat, 7 May 2016 08:57:14 +0000
(10:57 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Sat, 7 May 2016 08:57:14 +0000
(10:57 +0200)
src/PVE/PodParser.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/PodParser.pm
b/src/PVE/PodParser.pm
index 116cc2564ce10265553dd9977914891718771664..4f2868a0f6f3e427cae85bf0a93696298deb4c4b 100644
(file)
--- 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};
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}) {
} elsif ($phash->{enum}) {
return "(" . join(' | ', sort @{$phash->{enum}}) . ")";
} elsif ($phash->{pattern}) {