Skip to content

Commit

Permalink
Fix ,muti-line descriptions in unified product CSV export.
Browse files Browse the repository at this point in the history
  • Loading branch information
Drekorian committed Jul 4, 2021
1 parent 5015960 commit 1e9cb01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ hs_err_pid*
.gradle/

# IntelliJ Idea
.idea/
.idea/

# Build
/build/
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ data class Product(
|${if (valid) TRUE else FALSE}
|${if (isNew) TRUE else FALSE}
|${if (isOnSale) TRUE else FALSE}
|${description
|"${description
.lines()
.joinToString(separator = LINE_SEPARATOR)
}
}"
$ingredients"""
.lines()
.filterIndexed { index, _ -> index != 0 }
Expand Down

0 comments on commit 1e9cb01

Please sign in to comment.