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() {
|
it('renders a label', function() {
|
||||||
this.node._render();
|
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) {
|
it('sets the class of the first and third tspan to "quote"', function(done) {
|
||||||
|
@ -4,7 +4,7 @@ export default {
|
|||||||
type: 'literal',
|
type: 'literal',
|
||||||
|
|
||||||
_render() {
|
_render() {
|
||||||
return this.renderLabel(['"', this.literal, '"'])
|
return this.renderLabel(['\u201c', this.literal, '\u201d'])
|
||||||
.tap(label => {
|
.tap(label => {
|
||||||
var spans = label.selectAll('tspan');
|
var spans = label.selectAll('tspan');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user