Skip to content

Commit

Permalink
Merge pull request #51 from dag-hammarskjold-library/bg/main6
Browse files Browse the repository at this point in the history
trim empty lines in tabs 2 and 3
  • Loading branch information
grozdanic authored Dec 18, 2024
2 parents 3f27d24 + c681d03 commit 8d74f38
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ods/static/js/ods.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,13 @@ data: function () {
// Just to refresh the UI
this.listOfResult1=[]



this.docsymbols1 = this.docsymbols1
.split('\n')
.filter(line => line.trim() !== '')
.join('\n');

let dataset = new FormData()
dataset.append('docsymbols1',this.docsymbols1)

Expand Down Expand Up @@ -591,6 +598,12 @@ data: function () {
// display Progress bar
this.displayProgress3=true

this.docsymbols2 = this.docsymbols2
.split('\n')
.filter(line => line.trim() !== '')
.join('\n');


let dataset = new FormData()
dataset.append('docsymbols2',this.docsymbols2)

Expand Down

0 comments on commit 8d74f38

Please sign in to comment.