Skip to content

Commit

Permalink
fix empty style in formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 20, 2024
1 parent 054d24c commit bf7ac12
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Expand Up @@ -6868,7 +6868,7 @@
if (!result.length) {
return '';
}
if (!style_attrs) {
if (!style_attrs && style) {
// if there are not style attr we need to add style
result.push('style="' + style + '"');
}
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sat, 20 Apr 2024 19:14:28 +0000
* Date: Sat, 20 Apr 2024 20:11:42 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5308,7 +5308,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 20 Apr 2024 19:14:28 +0000',
date: 'Sat, 20 Apr 2024 20:11:42 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -6868,7 +6868,7 @@
if (!result.length) {
return '';
}
if (!style_attrs) {
if (!style_attrs && style) {
// if there are not style attr we need to add style
result.push('style="' + style + '"');
}
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit bf7ac12

Please sign in to comment.