GUACAMOLE-630: Include newlines within color scheme strings for readability.

This commit is contained in:
Michael Jumper
2019-08-06 22:57:55 -07:00
parent 02d3732c9c
commit f9bfac9de2

View File

@@ -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;