Trim whitespace
This commit is contained in:
parent
d092201c71
commit
7bec901d9c
2
app.js
2
app.js
@ -78,7 +78,7 @@ app.post('/convert', function (req, res) {
|
||||
|
||||
shell.mkdir(`${tempDirRoot}${id}`);
|
||||
|
||||
var document = documentTemplate.replace('EQUATION', req.body.latexInput);
|
||||
var document = documentTemplate.replace('EQUATION', req.body.latexInput.trim());
|
||||
fs.writeFileSync(`${tempDirRoot}${id}/equation.tex`, document); // Write generated .tex file
|
||||
|
||||
var result = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user