Skip to content

Commit

Permalink
remove exporter change (in another PR)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobnik committed Oct 16, 2024
1 parent ff169aa commit 43a4e78
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/features/export/Exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default class Exporter {
this.startComments()
this.line("BEGIN PRE")
this.endComments()
this.line(this.pre, this.pre !== "", false)
this.line(this.pre, this.pre !== "")
this.startComments()
this.line("END PRE")
this.endComments()
Expand All @@ -91,7 +91,7 @@ export default class Exporter {
this.startComments()
this.line("BEGIN POST")
this.endComments()
this.line(this.post, this.post !== "", false)
this.line(this.post, this.post !== "")
this.startComments()
this.line("END POST")
this.endComments()
Expand All @@ -115,7 +115,7 @@ export default class Exporter {
this.vertices = vertices
}

line(content = "", add = true, sanitize = true) {
line(content = "", add = true) {
if (add) {
let padding = ""
if (this.commenting) {
Expand All @@ -124,10 +124,7 @@ export default class Exporter {
padding += " "
}
}

const preparedContent = sanitize ? this.sanitizeValue(content) : content

this.lines.push(padding + preparedContent)
this.lines.push(padding + this.sanitizeValue(content))
}
}

Expand Down

0 comments on commit 43a4e78

Please sign in to comment.