Using fancy quotes for literals
This commit is contained in:
parent
d909312b94
commit
6793b342ae
@ -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) {
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user