Skip to content

Commit abed23c

Browse files
committed
Fix pretty-printing of true/false keywords
1 parent db47dbe commit abed23c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/esmf-aspect-model-validator/src/main/java/org/eclipse/esmf/aspectmodel/shacl/RustLikeFormatter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,12 @@ private boolean formatNode( final RDFNode node ) {
231231
if ( node.asNode().equals( NodeConst.nodeRDFType ) ) {
232232
spacedIfPossible( "a " );
233233
}
234+
if ( node.asNode().equals( NodeConst.nodeTrue ) ) {
235+
spacedIfPossible( "true" );
236+
}
237+
if ( node.asNode().equals( NodeConst.nodeFalse ) ) {
238+
spacedIfPossible( "false" );
239+
}
234240
return true;
235241
}
236242

0 commit comments

Comments
 (0)