We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1acc85d commit 3616f14Copy full SHA for 3616f14
exist-core/src/main/java/org/exist/xquery/AbstractPragma.java
@@ -93,6 +93,13 @@ public void resetState(final boolean postOptimization) {
93
94
@Override
95
public String toString() {
96
- return "(# " + name + ' ' + contents + "#)";
+ final StringBuilder builder = new StringBuilder();
97
+ builder.append("(# ");
98
+ builder.append(name);
99
+ if (contents != null && !contents.isEmpty()) {
100
+ builder.append(' ').append(contents);
101
+ }
102
+ builder.append("#)");
103
+ return builder.toString();
104
}
105
0 commit comments