diff options
| author | bjculkin <bjculkin@mix.wvu.edu> | 2018-03-01 14:16:15 -0500 |
|---|---|---|
| committer | bjculkin <bjculkin@mix.wvu.edu> | 2018-03-01 14:16:15 -0500 |
| commit | 0b373102f64fd7bfd25837a24ffb4ccb44b9d7e9 (patch) | |
| tree | fe947781da6ca891a3e25a3461f3394a7953d080 /base/src/main/java/bjc/utils/ioutils/format/FreshlineDirective.java | |
| parent | 2d8f0aba5565b292f17695afd276143a4f71c72b (diff) | |
Finish most of CL formatting.
There are a couple of unimplemented directives, but the only ones I'd
consider anywhere near crucial would be the floating-point ones, which
I'm not sure what I should do with them.
Diffstat (limited to 'base/src/main/java/bjc/utils/ioutils/format/FreshlineDirective.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/ioutils/format/FreshlineDirective.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/base/src/main/java/bjc/utils/ioutils/format/FreshlineDirective.java b/base/src/main/java/bjc/utils/ioutils/format/FreshlineDirective.java deleted file mode 100644 index 8ae0c72..0000000 --- a/base/src/main/java/bjc/utils/ioutils/format/FreshlineDirective.java +++ /dev/null @@ -1,25 +0,0 @@ -package bjc.utils.ioutils.format; - -import bjc.utils.esodata.Tape; - -import java.util.regex.Matcher; - -class FreshlineDirective implements Directive { - - @Override - public void format(StringBuffer buff, Object item, CLModifiers mods, CLParameters params, Tape<Object> tParams, - Matcher dirMatcher, CLFormatter fmt) { - int nTimes = 1; - - if(params.length() > 1) { - nTimes = params.getInt(0, "occurance count", '&'); - } - - if(buff.charAt(buff.length() - 1) == '\n') nTimes -= 1; - - for(int i = 0; i < nTimes; i++) { - buff.append("\n"); - } - } - -} |
