Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EquationGen.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class EquationGen extends ModelReader {
return this.generateLookup()
}
// Show the model var as a comment for reference.
this.comments.push(` // ${this.var.modelLHS} = ${this.var.modelFormula.replace('\n', '')}`)
this.comments.push(` // ${this.var.modelLHS} = ${this.var.modelFormula.replace(/\n/g, '')}`)
// Emit direct constants individually without separating them first.
if (this.var.directConstArgs) {
return this.generateDirectConstInit()
Expand Down