mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Fix whitespace
This commit is contained in:
parent
964070ee46
commit
6ef4ad96e8
3 changed files with 16 additions and 11 deletions
|
@ -291,13 +291,16 @@ function getPath ( node, root ) {
|
||||||
}
|
}
|
||||||
if ( classNames ) {
|
if ( classNames ) {
|
||||||
if ( indexOf.call( classNames, HIGHLIGHT_CLASS ) > -1 ) {
|
if ( indexOf.call( classNames, HIGHLIGHT_CLASS ) > -1 ) {
|
||||||
path += '[backgroundColor=' + node.style.backgroundColor.replace(/ /g,'') + ']';
|
path += '[backgroundColor=' +
|
||||||
|
node.style.backgroundColor.replace( / /g,'' ) + ']';
|
||||||
}
|
}
|
||||||
if ( indexOf.call( classNames, COLOUR_CLASS ) > -1 ) {
|
if ( indexOf.call( classNames, COLOUR_CLASS ) > -1 ) {
|
||||||
path += '[color=' + node.style.color.replace(/ /g,'') + ']';
|
path += '[color=' +
|
||||||
|
node.style.color.replace( / /g,'' ) + ']';
|
||||||
}
|
}
|
||||||
if ( indexOf.call( classNames, FONT_FAMILY_CLASS ) > -1 ) {
|
if ( indexOf.call( classNames, FONT_FAMILY_CLASS ) > -1 ) {
|
||||||
path += '[fontFamily=' + node.style.fontFamily.replace(/ /g,'') + ']';
|
path += '[fontFamily=' +
|
||||||
|
node.style.fontFamily.replace( / /g,'' ) + ']';
|
||||||
}
|
}
|
||||||
if ( indexOf.call( classNames, FONT_SIZE_CLASS ) > -1 ) {
|
if ( indexOf.call( classNames, FONT_SIZE_CLASS ) > -1 ) {
|
||||||
path += '[fontSize=' + node.style.fontSize + ']';
|
path += '[fontSize=' + node.style.fontSize + ']';
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -115,13 +115,16 @@ function getPath ( node, root ) {
|
||||||
}
|
}
|
||||||
if ( classNames ) {
|
if ( classNames ) {
|
||||||
if ( indexOf.call( classNames, HIGHLIGHT_CLASS ) > -1 ) {
|
if ( indexOf.call( classNames, HIGHLIGHT_CLASS ) > -1 ) {
|
||||||
path += '[backgroundColor=' + node.style.backgroundColor.replace(/ /g,'') + ']';
|
path += '[backgroundColor=' +
|
||||||
|
node.style.backgroundColor.replace( / /g,'' ) + ']';
|
||||||
}
|
}
|
||||||
if ( indexOf.call( classNames, COLOUR_CLASS ) > -1 ) {
|
if ( indexOf.call( classNames, COLOUR_CLASS ) > -1 ) {
|
||||||
path += '[color=' + node.style.color.replace(/ /g,'') + ']';
|
path += '[color=' +
|
||||||
|
node.style.color.replace( / /g,'' ) + ']';
|
||||||
}
|
}
|
||||||
if ( indexOf.call( classNames, FONT_FAMILY_CLASS ) > -1 ) {
|
if ( indexOf.call( classNames, FONT_FAMILY_CLASS ) > -1 ) {
|
||||||
path += '[fontFamily=' + node.style.fontFamily.replace(/ /g,'') + ']';
|
path += '[fontFamily=' +
|
||||||
|
node.style.fontFamily.replace( / /g,'' ) + ']';
|
||||||
}
|
}
|
||||||
if ( indexOf.call( classNames, FONT_SIZE_CLASS ) > -1 ) {
|
if ( indexOf.call( classNames, FONT_SIZE_CLASS ) > -1 ) {
|
||||||
path += '[fontSize=' + node.style.fontSize + ']';
|
path += '[fontSize=' + node.style.fontSize + ']';
|
||||||
|
|
Loading…
Reference in a new issue