Skip to content

Commit

Permalink
restore &pc tag
Browse files Browse the repository at this point in the history
not pointless til old defs are deleted
  • Loading branch information
mcmonkey4eva committed Sep 11, 2019
1 parent ae86f35 commit d6494c8
Showing 1 changed file with 10 additions and 4 deletions.
Expand Up @@ -386,10 +386,6 @@ else if (lower.equals("&sc")) {
Deprecations.pointlessTextTags.warn(event.getScriptEntry());
event.setReplaced(new ElementTag(String.valueOf((char) 0x2011)).getAttribute(attribute.fulfill(1)));
}
else if (lower.equals("&pc")) {
Deprecations.pointlessTextTags.warn(event.getScriptEntry());
event.setReplaced(new ElementTag("%").getAttribute(attribute.fulfill(1)));
}
else if (lower.equals("&pipe")) {
Deprecations.pointlessTextTags.warn(event.getScriptEntry());
event.setReplaced(new ElementTag("|").getAttribute(attribute.fulfill(1)));
Expand All @@ -411,6 +407,16 @@ else if (lower.equals("&hrt")) {
event.setReplaced(new ElementTag("\u2665").getAttribute(attribute.fulfill(1)));
}

// <--[tag]
// @attribute <&pc>
// @returns ElementTag
// @description
// Returns a percent symbol: %
// -->
else if (lower.equals("&pc")) {
event.setReplaced(new ElementTag("%").getAttribute(attribute.fulfill(1)));
}

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

0 comments on commit d6494c8

Please sign in to comment.