Skip to content

Commit

Permalink
S (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamb419 authored Nov 9, 2023
1 parent 42fa1d7 commit 83ddf40
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ public LaTexCommand() {

@Override
public void runCommandThread(CommandContext ctx) {
String latex = ctx.parsedMsg().substring(ctx.parsedMsg().indexOf(' ') + 1);
String latex;
if(ctx.parsedMsg().contains(" ")) {
latex = ctx.parsedMsg().substring(ctx.parsedMsg().indexOf(' ') + 1);
} else {
latex = "\\LaTeX";
}
TeXFormula formula;

// Catch any error in the user input and return that to the user
Expand Down

0 comments on commit 83ddf40

Please sign in to comment.