fix(doc): correct brace detection (refs #4739)