Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/rxm.git
source/java/com/whitemagicsoftware/rxm/tree/TransformationTree.java
*
* @param spaces The number of spaces to add to the string.
+ * @return A string with 'spaces' number of " " padding.
*/
protected String getIndent( int spaces ) {
return CharBuffer.allocate( spaces ).toString().replace( '\0', ' ' );
+ }
+
+ /**
+ * Returns the default amount of spaces.
+ *
+ * @return " " (by default)
+ */
+ protected String getDefaultIndent() {
+ return getIndent( getIndentBy() );
}
source/java/com/whitemagicsoftware/rxm/tree/xml/JoinClauseList.java
// Separate the JOIN statements from each other.
- String separateStart = beautify() ? NL + getIndent( getIndentBy() ) : " ";
+ String separateStart = beautify() ? NL + getDefaultIndent() : " ";
String separateStop = beautify() ? NL : " ";

Comments and default indent.

Author Dave Jarvis <email>
Date 2015-03-14 16:06:55 GMT-0700
Commit 9517f6f74e3d4f0f3f73782e0f44fa0f298789ad
Parent c544804
Delta 11 lines added, 1 line removed, 10-line increase