mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-03-03 14:52:21 +02:00
Skip comments when rendering help output.
Comments should not appear in the help. They are simply notes on implementation.
This commit is contained in:
parent
c38d6926d6
commit
912a498b0b
@ -88,7 +88,7 @@ bldHlpRenderXmlNode(const xmlNodePtr xml)
|
||||
else
|
||||
THROW_FMT(FormatError, "unknown tag '%s'", strZ(name));
|
||||
}
|
||||
else
|
||||
else if (currentNode->type == XML_TEXT_NODE)
|
||||
{
|
||||
xmlChar *content = xmlNodeGetContent(currentNode);
|
||||
String *text = strNewZ((char *)content);
|
||||
|
@ -39,6 +39,7 @@ testRun(void)
|
||||
"<doc>"
|
||||
"<p><backrest/> <postgres/> {[dash]} "
|
||||
"<b><br-option><cmd><code><exe><file><host><i><id><link><path><pg-setting><proper><setting>"
|
||||
"<!-- COMMENT -->"
|
||||
"info"
|
||||
"</setting></proper></pg-setting></path></link></id></i></host></file></exe></code></cmd></br-option></b></p>\n"
|
||||
"\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user