Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Reverted change to R decorator

AuthorDaveJarvis <email>
Date2020-07-02 19:54:49 GMT-0700
Commit813859bb9ec964a8b373fbe171fd7df35f011321
Parent66d9c3c
Delta8 lines added, 4 lines removed, 4-line increase
src/main/java/com/scrivenvar/decorators/RVariableDecorator.java
/**
- * Brackets variable names with {@code `r#x( v$} and {@code )`}.
+ * Brackets variable names with {@code `r#} and {@code `}.
*/
public class RVariableDecorator implements VariableDecorator {
- public static final String PREFIX = "`r#x( v$";
- public static final String SUFFIX = " )`";
+ public static final String PREFIX = "`r#";
+ public static final char SUFFIX = '`';
/**
}
- return PREFIX + variableName.replace( '.', '$' ) + SUFFIX;
+ return PREFIX +
+ "x( v$" +
+ variableName.replace( '.', '$' ) +
+ " )" +
+ SUFFIX;
}
}