Skip to content

Commit

Permalink
rename option
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Jul 26, 2020
1 parent 9ee5b17 commit 6c8de61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doT.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare namespace doT {
[key: string]: Encoder
}
selfContained: boolean
stripWhitespace: boolean
strip: boolean
internalPrefix: string
encodersPrefix: string
delimiters: Delimiters
Expand Down
4 changes: 2 additions & 2 deletions doT.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const doT = {
argName: "it",
encoders: {},
selfContained: false,
stripWhitespace: true,
strip: true,
internalPrefix: "_val",
encodersPrefix: "_enc",
delimiters: {
Expand Down Expand Up @@ -100,7 +100,7 @@ function template(tmpl, c, def) {

str = (
"let out='" +
(c.stripWhitespace
(c.strip
? str
.trim()
.replace(/[\t ]+(\r|\n)/g, "\n") // remove trailing spaces
Expand Down

0 comments on commit 6c8de61

Please sign in to comment.