Using fancy quotes for literals

This commit is contained in:
Jeff Avallone 2014-12-21 01:54:12 -05:00
parent d909312b94
commit 6793b342ae
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ describe('parser/javascript/literal.js', function() {
it('renders a label', function() {
this.node._render();
expect(this.node.renderLabel).toHaveBeenCalledWith(['"', 'a', '"']);
expect(this.node.renderLabel).toHaveBeenCalledWith(['\u201c', 'a', '\u201d']);
});
it('sets the class of the first and third tspan to "quote"', function(done) {

View File

@ -4,7 +4,7 @@ export default {
type: 'literal',
_render() {
return this.renderLabel(['"', this.literal, '"'])
return this.renderLabel(['\u201c', this.literal, '\u201d'])
.tap(label => {
var spans = label.selectAll('tspan');