Skip to content

Commit

Permalink
Fixed issue 1088: Color is displayed as a hex code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-raoul committed Apr 4, 2012
1 parent 4b1a603 commit 320e425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/ichi2/libanki/Models.java
Expand Up @@ -988,8 +988,8 @@ public void setChanged() {
* - 1: within a tag * - 1: within a tag
*/ */
public static String invertColors(String text) { public static String invertColors(String text) {
final String[] colors = {"white", "black"}; final String[] colors = {"color=\"white\"", "color=\"black\""};
final String[] htmlColors = {"#000000", "#ffffff"}; final String[] htmlColors = {"color=\"#000000\"", "color=\"#ffffff\""};
for (int i = 0; i < colors.length; i++) { for (int i = 0; i < colors.length; i++) {
text = text.replace(colors[i], htmlColors[i]); text = text.replace(colors[i], htmlColors[i]);
} }
Expand Down

0 comments on commit 320e425

Please sign in to comment.