Skip to content

Commit

Permalink
updated MarkdownConsole.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Aug 24, 2021
1 parent ec7ed87 commit 7d54701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/MarkdownConsole.kx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class MarkdownConsole(mdtext_) {
private dispText(level, words) {
var l = 0, max = 76 - (4 * level);
words.each { &(word)
var wl = word.replace(/\x1b\[[0-9]+[a-z]/, "").length();
var wl = word.replace(/\x1b\[[0-9;]+[a-zA-Z]/, "").length();
l += wl + 1;
if (max < l) {
System.print("\n" + (" " * level));
Expand Down

0 comments on commit 7d54701

Please sign in to comment.