Browse Source

refs #4173: Removed beginning and end whitespace from td.

zhixin 6 years ago
parent
commit
9345132071
2 changed files with 2 additions and 1 deletions
  1. 1 0
      CHANGELOG.md
  2. 1 1
      src/bootstrap-table.js

+ 1 - 0
CHANGELOG.md

@@ -8,6 +8,7 @@ ChangeLog
 - **Update(js):** Redefined customSearch option.
 - **Update(js):** Fixed show footer cannot work bug.
 - **Update(js):** Fixed IE11 transform bug.
+- **Update(js):** Removed beginning and end whitespace from td.
 - **Update(export extension):** Fixed export selected bug.
 
 ### 1.13.4

+ 1 - 1
src/bootstrap-table.js

@@ -751,7 +751,7 @@
 
           const field = this.columns[x].field
 
-          row[field] = $(el).html()
+          row[field] = $(el).html().trim()
           // save td's id, class and data-* attributes
           row[`_${field}_id`] = $(el).attr('id')
           row[`_${field}_class`] = $(el).attr('class')