Fix extra space in printer

This commit is contained in:
Jarred Sumner
2021-06-04 18:26:55 -07:00
parent 1cc15b6c20
commit c17c200cfd
3 changed files with 52 additions and 28 deletions

View File

@@ -89,6 +89,13 @@ pub const MutableString = struct {
}
}
// If it ends with an emoji
if (needs_gap) {
try mutable.appendChar('_');
needs_gap = false;
has_needed_gap = true;
}
return mutable.list.toOwnedSlice(allocator);
}