mirror of
https://git.proxmox.com/git/pve-common
synced 2025-04-29 22:33:55 +00:00
REST handler: get property description: escape curly braces for asciidoc
Text enclosed in unescaped curly braces will be interpreted as an attribute reference breaking and e.g. lead to the description not showing up at all a generated man page further down the line. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
7b7e669e77
commit
6c19a10dd9
@ -517,6 +517,9 @@ my $get_property_description = sub {
|
||||
chomp $wdescr;
|
||||
$wdescr =~ s/^$/+/mg;
|
||||
|
||||
$wdescr =~ s/{/\\{/g;
|
||||
$wdescr =~ s/}/\\}/g;
|
||||
|
||||
$res .= $wdescr . "\n";
|
||||
|
||||
if (my $req = $phash->{requires}) {
|
||||
|
Loading…
Reference in New Issue
Block a user