Skip to content

How to control string quoting on a per-property basis? #453

Closed Answered by robross0606
robross0606 asked this question in Q&A
Discussion options

You must be logged in to vote

I think I see how to do this now:

const doc = new Document()

const firstProp = doc.createNode("hello")
firstProp.type = 'PLAIN'
doc.set('first', firstProp)

const secondProp= doc.createNode("world")
secondProp.type = 'QUOTE_DOUBLE'
doc.set('second', secondProp)

doc.toString()

Is that correct?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eemeli
Comment options

Answer selected by robross0606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants