You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With express.js I send a .txt file through a template that is received correctly, the problem is that it does not add the line break automatically when the variable is declared in the end of the line.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With express.js I send a .txt file through a template that is received correctly, the problem is that it does not add the line break automatically when the variable is declared in the end of the line.
Template syntax that adds the line break:
Option 1: Convert to string with \n:
Option 2: Add a space after the closing tag:
Result:
Template syntax not adding line break:
Result:
Beta Was this translation helpful? Give feedback.
All reactions