Browse files

Fixed issue 1088: Color is displayed as a hex code

  • Loading branch information...
1 parent 4b1a603 commit 320e425c564b7008cd7585cc494a8353ddd558c1 @nicolas-raoul committed Apr 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/com/ichi2/libanki/Models.java
View
4 src/com/ichi2/libanki/Models.java
@@ -988,8 +988,8 @@ public void setChanged() {
* - 1: within a tag
*/
public static String invertColors(String text) {
- final String[] colors = {"white", "black"};
- final String[] htmlColors = {"#000000", "#ffffff"};
+ final String[] colors = {"color=\"white\"", "color=\"black\""};
+ final String[] htmlColors = {"color=\"#000000\"", "color=\"#ffffff\""};
for (int i = 0; i < colors.length; i++) {
text = text.replace(colors[i], htmlColors[i]);
}

0 comments on commit 320e425

Please sign in to comment.