forked from phoedos/pmd
Escape pipes in rule default values
- This was breaking the tables for rules such as Java's `EmptyCatchBlock`
This commit is contained in:
@ -427,7 +427,7 @@ public class RuleDocGenerator {
|
||||
+ description.substring(DEPRECATED_RULE_PROPERTY_MARKER.length());
|
||||
}
|
||||
lines.add("|" + propertyDescriptor.name()
|
||||
+ "|" + (propertyDescriptor.defaultValue() != null ? String.valueOf(propertyDescriptor.defaultValue()) : "")
|
||||
+ "|" + (propertyDescriptor.defaultValue() != null ? String.valueOf(propertyDescriptor.defaultValue()) : "").replace("|", "\\|")
|
||||
+ "|" + description
|
||||
+ "|");
|
||||
}
|
||||
|
Reference in New Issue
Block a user