Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Breck Yunits authored and Breck Yunits committed Mar 21, 2023
1 parent bd903a9 commit 423b6bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions grammar/aftertext.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ abstractAftertextNode
defaultClassName = ""
compile() {
const { className } = this
const classAttr = className ? `class="${this.className}"` : ""
return `<${this.tag} ${this.divAttributes}${classAttr}>${this.text}</${this.tag}>`
const classAttr = className ? `class="${className}"` : ""
const attr = this.divAttributes + classAttr
return `<${this.tag}${attr ? " " + attr : ""}>${this.text}</${this.tag}>`
}
get divAttributes() {
const attrs = this.filter(node => node.isAttributeNode)
Expand Down

0 comments on commit 423b6bf

Please sign in to comment.