Skip to content

Commit

Permalink
"\n" is now honored properly in prompt dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Glasmachers committed Aug 30, 2024
1 parent bce40eb commit 4a077b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tscript",
"version": "1.2.2",
"version": "1.2.3",
"description": "",
"main": "tscript.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/ide/elements/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ export function prepare_run() {
type: "p",
parent: dlg.content,
text: msg,
style: {
"white-space": "pre-wrap", // do linebreaks
},
});
dlg.content.appendChild(input);
tgui.startModal(dlg);
Expand Down
4 changes: 2 additions & 2 deletions src/lang/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const Version = {
major: package_json.version.split(".")[0],
minor: package_json.version.split(".")[1],
patch: package_json.version.split(".")[2],
day: 7,
month: 7,
day: 30,
month: 8,
year: 2024,
full: function () {
let s =
Expand Down

0 comments on commit 4a077b3

Please sign in to comment.