Skip to content

Commit

Permalink
trim whitespace fom table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
m-atia committed Jan 22, 2024
1 parent 5b6026b commit b8f7756
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $('table.js-hide-empty').each(function(i, obj) {
var tds = $(this).parents('table').find('tr td:nth-child(' + (i + 1) + ')');

tds.each(function(j) {
if (this.innerHTML == '') remove++;
if (this.innerHTML.trim() == '') remove++;
if (this.innerHTML == ' ') remove++;
if (this.innerHTML == '<b><span class="responsive-label">Description: </span></b> ') remove++;
});
Expand Down

0 comments on commit b8f7756

Please sign in to comment.