From f9bfac9de222cff95bde5f23f51a83f5eaf74c71 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 6 Aug 2019 22:57:55 -0700 Subject: [PATCH] GUACAMOLE-630: Include newlines within color scheme strings for readability. --- guacamole/src/main/webapp/app/form/types/ColorScheme.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guacamole/src/main/webapp/app/form/types/ColorScheme.js b/guacamole/src/main/webapp/app/form/types/ColorScheme.js index f6a659411..e25458e04 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 @@ angular.module('form').factory('ColorScheme', [function defineColorScheme() { 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;