Browse Source

Fixed images with _ in their names not showing up.

pull/127/head
weisj 5 years ago
parent
commit
86f1e852fc
  1. 5
      core/src/test/java/documentation/CreateUITable.java
  2. 2
      docs/darcula/defaults_mac.html
  3. 0
      docs/darcula/img/SecurityDecisionIcon.png
  4. 2
      docs/intellij/defaults_mac.html
  5. 0
      docs/intellij/img/SecurityDecisionIcon.png
  6. 2
      docs/solarized_dark/defaults_mac.html
  7. 0
      docs/solarized_dark/img/SecurityDecisionIcon.png
  8. 2
      docs/solarized_light/defaults_mac.html
  9. 0
      docs/solarized_light/img/SecurityDecisionIcon.png

5
core/src/test/java/documentation/CreateUITable.java

@ -240,14 +240,15 @@ public class CreateUITable {
}
private String parseImage(final String key, final Object value, final int ident) {
String stringRepresentation = parseValue(value).replaceAll(" ", "");
String stringRepresentation = parseValue(value).replaceAll(" ", "").replaceAll("_", "");
String keyName = key.replace(" ", "").replaceAll("_", "");
String path;
Dimension size = new Dimension(SAMPLE_WIDTH, SAMPLE_HEIGHT);
try {
if (!(value instanceof Icon)) {
path = createImage(value, stringRepresentation, size);
} else {
path = createImage(value, key, size);
path = createImage(value, keyName, size);
}
} catch (IOException ignored) {
return StringUtil.repeat(IDENT, ident) + "<td></td>\n";

2
docs/darcula/defaults_mac.html

@ -11182,7 +11182,7 @@
<td>_SecurityDecisionIcon</td>
<td>Icon [128,128]</td>
<td></td>
<td align="center" style="padding:0px"><img alt="_SecurityDecisionIcon" src="img/_SecurityDecisionIcon.png">
<td align="center" style="padding:0px"><img alt="_SecurityDecisionIcon" src="img/SecurityDecisionIcon.png">
</td>
</tr>
<tr>

0
docs/darcula/img/_SecurityDecisionIcon.png → docs/darcula/img/SecurityDecisionIcon.png

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

2
docs/intellij/defaults_mac.html

@ -11182,7 +11182,7 @@
<td>_SecurityDecisionIcon</td>
<td>Icon [128,128]</td>
<td></td>
<td align="center" style="padding:0px"><img alt="_SecurityDecisionIcon" src="img/_SecurityDecisionIcon.png">
<td align="center" style="padding:0px"><img alt="_SecurityDecisionIcon" src="img/SecurityDecisionIcon.png">
</td>
</tr>
<tr>

0
docs/intellij/img/_SecurityDecisionIcon.png → docs/intellij/img/SecurityDecisionIcon.png

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

2
docs/solarized_dark/defaults_mac.html

@ -11182,7 +11182,7 @@
<td>_SecurityDecisionIcon</td>
<td>Icon [128,128]</td>
<td></td>
<td align="center" style="padding:0px"><img alt="_SecurityDecisionIcon" src="img/_SecurityDecisionIcon.png">
<td align="center" style="padding:0px"><img alt="_SecurityDecisionIcon" src="img/SecurityDecisionIcon.png">
</td>
</tr>
<tr>

0
docs/solarized_dark/img/_SecurityDecisionIcon.png → docs/solarized_dark/img/SecurityDecisionIcon.png

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

2
docs/solarized_light/defaults_mac.html

@ -11182,7 +11182,7 @@
<td>_SecurityDecisionIcon</td>
<td>Icon [128,128]</td>
<td></td>
<td align="center" style="padding:0px"><img alt="_SecurityDecisionIcon" src="img/_SecurityDecisionIcon.png">
<td align="center" style="padding:0px"><img alt="_SecurityDecisionIcon" src="img/SecurityDecisionIcon.png">
</td>
</tr>
<tr>

0
docs/solarized_light/img/_SecurityDecisionIcon.png → docs/solarized_light/img/SecurityDecisionIcon.png

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Loading…
Cancel
Save