Skip to content

Commit df30b7d

Browse files
author
Ben Lerner
committed
forgot a file, to improve rendering in the REPL
1 parent 15431c5 commit df30b7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/web/js/output-ui.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,10 @@
14291429
});
14301430
} else if (jsnums.isRoughnum(num)) {
14311431
ariaText = num.n.toString() + ', roughly';
1432-
outText = $('<span>').addClass('replTextOutput roughNumber').text(num.toString());
1432+
var roughnumStr = num.toString().slice(1);
1433+
outText = $('<span>').addClass('replTextOutput roughNumber');
1434+
outText.append($('<span>').addClass('cm-roughnum-start').text('~'));
1435+
outText.append($('<span>').addClass('cm-roughnum').text(roughnumStr));
14331436
} else {
14341437
ariaText = num.toString();
14351438
outText = renderText(sooper(renderers, "number", num));

0 commit comments

Comments
 (0)