src/832xlsxml.js
function hstyle(st) {
			// Prepare string
			var s = '';
			for (var key in st) {
				s += '<' + key;
				for (var attr in st[key]) {
					s += ' ';
					if (attr.substr(0, 2) == 'x:') {
						s += attr;
					} else {
						s += 'ss:';
					}
					s += attr + '="' + st[key][attr] + '"';
				}
				s += '/>';
			}

			var hh = hash(s);
			// Store in hash
			if (styles[hh]) {
			} else {
				styles[hh] = {styleid: stylesn};
				s2 += '<Style ss:ID="s' + stylesn + '">';
				s2 += s;
				s2 += '</Style>';
				stylesn++;
			}
			return 's' + styles[hh].styleid;
		}
function hstyle(st) {
			// Prepare string
			var s = '';
			for (var key in st) {
				s += '<' + key;
				for (var attr in st[key]) {
					s += ' ';
					if (attr.substr(0, 2) == 'x:') {
						s += attr;
					} else {
						s += 'ss:';
					}
					s += attr + '="' + st[key][attr] + '"';
				}
				s += '/>';
			}

			var hh = hash(s);
			// Store in hash
			if (styles[hh]) {
			} else {
				styles[hh] = {styleid: stylesn};
				s2 += '<Style ss:ID="s' + stylesn + '">';
				s2 += s;
				s2 += '</Style>';
				stylesn++;
			}
			return 's' + styles[hh].styleid;
		}
function hstyle ( st ) { // Prepare string var s = '' ; for ( var key in st ) { s += '<' + key ; for ( var attr in st [ key ] ) { s += ' ' ; if ( attr . substr ( 0 , 2 ) == 'x:' ) { s += attr ; } else { s += 'ss:' ; } s += attr + '="' + st [ key ] [ attr ] + '"' ; } s += '/>' ; } var hh = hash ( s ) ; // Store in hash if ( styles [ hh ] ) { } else { styles [ hh ] = { styleid : stylesn } ; s2 += '<Style ss:ID="s' + stylesn + '">' ; s2 += s ; s2 += '</Style>' ; stylesn ++ ; } return 's' + styles [ hh ] . styleid ; }
First style Generate style
First style Generate style