Skip to content

Commit

Permalink
Hide old .escaped metas
Browse files Browse the repository at this point in the history
Deprecate list.escaped in favor of list.escaped_contents
  • Loading branch information
mcmonkey4eva committed Nov 4, 2014
1 parent b1175e0 commit ca35d6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Expand Up @@ -92,15 +92,7 @@ public String getAttribute(Attribute attribute) {
return new Element(bookInfo.getPage(attribute.getIntContext(1)))
.getAttribute(attribute.fulfill(1));

// <--[tag]
// @attribute <i@item.book.pages.escaped>
// @returns dList
// @mechanism dItem.book
// @group properties
// @description
// Returns the pages of the book as a dList, pre-escaped to prevent issues.
// See <@link language Property Escaping>
// -->
// Deprecated in favor of pages.escape_contents
if (attribute.startsWith("pages.escaped")) {
StringBuilder output = new StringBuilder();
for (String page: bookInfo.getPages()) {
Expand Down
Expand Up @@ -39,15 +39,7 @@ public String getAttribute(Attribute attribute) {

if (attribute == null) return "null";

// <--[tag]
// @attribute <i@item.lore.escaped>
// @returns dList
// @mechanism dItem.lore
// @group properties
// @description
// Returns lore as a dList, pre-escaped to prevent issues.
// See <@link language Property Escaping>
// -->
// deprecated in favor of .escape_contents
if (attribute.startsWith("lore.escaped")) {
if (hasLore())
return new Element(getPropertyString()).getAttribute(attribute.fulfill(2));
Expand Down

0 comments on commit ca35d6e

Please sign in to comment.