fix terminal wrap

This commit is contained in:
Olivier Gagnon 2021-09-18 02:21:48 -04:00
parent fd55155fea
commit be9b595590
2 changed files with 5 additions and 6 deletions

@ -33,12 +33,10 @@ export function cat(
showLiterature(file);
return;
} else if (filename.endsWith(".msg")) {
const file = server.messages[i];
if (typeof file === "string") throw new Error(".msg file should not be a .lit");
if (file.filename === filename) {
showMessage(file);
return;
}
const file = server.messages[i] as Message;
if (file.filename !== filename) continue;
showMessage(file);
return;
}
}
} else if (filename.endsWith(".txt")) {

@ -31,6 +31,7 @@ const useStyles = makeStyles((theme: Theme) =>
},
preformatted: {
whiteSpace: "pre-wrap",
overflowWrap: "anywhere",
margin: theme.spacing(0),
},
list: {