GUACAMOLE-630: Include newlines within color scheme strings for readability.
diff --git a/guacamole/src/main/webapp/app/form/types/ColorScheme.js b/guacamole/src/main/webapp/app/form/types/ColorScheme.js
index f6a6594..e25458e 100644
--- a/guacamole/src/main/webapp/app/form/types/ColorScheme.js
+++ b/guacamole/src/main/webapp/app/form/types/ColorScheme.js
@@ -214,12 +214,12 @@
ColorScheme.toString = function toString(scheme) {
// Add background and foreground
- var str = 'background:' + fromHexColor(scheme.background) + ';'
- + 'foreground:' + fromHexColor(scheme.foreground) + ';';
+ var str = 'background: ' + fromHexColor(scheme.background) + ';\n'
+ + 'foreground: ' + fromHexColor(scheme.foreground) + ';';
// Add color definitions for each palette entry
for (var index in scheme.colors)
- str += 'color' + index + ':' + fromHexColor(scheme.colors[index]) + ';';
+ str += '\ncolor' + index + ': ' + fromHexColor(scheme.colors[index]) + ';';
return str;