I would be tempted to leave a space between the two marks after attain it , but you have used the correct method. The other alternative is to make yours an inset block quotation, thus: Zooey said " the Four Great Vows are ' However innumerable beings are ... I vow to attain it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.