Skip to content

Commit 898168b

Browse files
committed
User interpunct instead of bullet, little bit nicer but ideally would have a dot size in between these two.
1 parent 139260c commit 898168b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/AbbreviationLabel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static boolean parse(String label, List<String> tokens) {
192192
}
193193

194194
// separators
195-
if (c == '/' || c == '·' || c == '.' || c == '•') {
195+
if (c == '/' || c == '·' || c == '.' || c == '•' || c == '=') {
196196
tokens.add(Character.toString(c));
197197
i++;
198198
continue;

display/renderbasic/src/main/java/org/openscience/cdk/renderer/generators/standard/StandardSgroupGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
final class StandardSgroupGenerator {
6363

6464
public static final double EQUIV_THRESHOLD = 0.1;
65-
public static final char BULLET = '';
65+
public static final char INTERPUNCT = '·';
6666
private final double stroke;
6767
private final double scale;
6868
private final double bracketDepth;
@@ -374,15 +374,15 @@ private IRenderingElement generateAbbreviationSgroup(IAtomContainer mol, Sgroup
374374
double yDiff = sgrpCenter.y - molCenter.y;
375375
if (xDiff > 0.1) {
376376
labelLocation.x = minMax[0]; // min x
377-
label = BULLET + label;
377+
label = INTERPUNCT + label;
378378
}
379379
else if (xDiff < -0.1) {
380380
labelLocation.x = minMax[2]; // max x
381-
label = label + BULLET;
381+
label = label + INTERPUNCT;
382382
}
383383
else {
384384
labelLocation.x = sgrpCenter.x;
385-
label = BULLET + label;
385+
label = INTERPUNCT + label;
386386
}
387387
if (yDiff > 0.1)
388388
labelLocation.y = minMax[1]; // min y

0 commit comments

Comments
 (0)