Skip to content

Commit fbae01f

Browse files
committed
expose format_text as option
1 parent 78429a3 commit fbae01f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/unix_formatting.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1642,10 +1642,11 @@
16421642
settings.ansiParser[name] = parser_events[name];
16431643
}
16441644
});
1645+
var process_text = settings.format_text || format_text;
16451646
var parser = new AnsiParser(parser_events);
16461647
parser.parse(input);
16471648
var output = parser_events.result.map(function(line) {
1648-
return format_text(line);
1649+
return process_text(line);
16491650
}).join('\n');
16501651
if (input !== output) {
16511652
return output;

0 commit comments

Comments
 (0)