Skip to content

Commit

Permalink
Add tag "empty"
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 21, 2020
1 parent 51b7f90 commit 3430de3
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -79,6 +79,19 @@ else if (lower.equals("&hrt")) {
}
}, "&auml", "&Auml", "&ouml", "&Ouml", "&uuml", "&Uuml", "&amp", "&cm", "&sc", "&pipe", "&ds", "&at", "&dot", "&hrt");

// <--[tag]
// @attribute <empty>
// @returns ElementTag
// @description
// Returns an empty element.
// -->
TagManager.registerTagHandler(new TagRunnable.RootForm() {
@Override
public void run(ReplaceableTagEvent event) {
event.setReplaced(new ElementTag("").getAttribute(event.getAttributes().fulfill(1)));
}
}, "empty");

// <--[tag]
// @attribute <&pc>
// @returns ElementTag
Expand Down

0 comments on commit 3430de3

Please sign in to comment.