From 320e425c564b7008cd7585cc494a8353ddd558c1 Mon Sep 17 00:00:00 2001 From: Nicolas Raoul Date: Wed, 4 Apr 2012 21:47:52 +0900 Subject: [PATCH] Fixed issue 1088: Color is displayed as a hex code --- src/com/ichi2/libanki/Models.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/ichi2/libanki/Models.java b/src/com/ichi2/libanki/Models.java index ff132f109b..89377eb1ef 100644 --- a/src/com/ichi2/libanki/Models.java +++ b/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]); }