Permalink
Browse files

Alternate   w/ regular spaces for now

  • Loading branch information...
1 parent 2b5d973 commit e7129d3022be101310e46f5296c3a4211a7194ce @rf- committed Dec 31, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/pry-notebook/files/notebook.js
  2. +2 −2 lib/pry-notebook/files/test.js
@@ -16,7 +16,7 @@ Notebook.prototype.handleMessage = function(data) {
div = $('<div/>').addClass("pry-" + data.type);
html = html.replace(/\n/g, "<br>");
- html = html.replace(/ /g, "&nbsp;");
+ html = html.replace(/ /g, "&nbsp; ");
if (data.type == "result") {
html = "=> " + html;
@@ -37,13 +37,13 @@ describe("Pry Notebook", function() {
});
});
- describeMessageType("output", { value: "hey\nb a b y" }, function() {
+ describeMessageType("output", { value: "hey\nb ab y" }, function() {
it("uses the class 'pry-output'", function() {
expect(this.el.hasClass("pry-output")).toBe(true);
});
it("preserves line breaks and whitespace", function() {
- expect(this.el.html()).toBe("hey<br>b&nbsp;a&nbsp;b&nbsp;y");
+ expect(this.el.html()).toBe("hey<br>b&nbsp; ab y");
});
it("does not prepend =>", function() {

0 comments on commit e7129d3

Please sign in to comment.