1
0
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:
David Steele 2021-09-11 16:07:59 -04:00
parent c38d6926d6
commit 912a498b0b
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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"