Skip to content

Commit

Permalink
(#32) Remove outdated workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoss committed Jul 19, 2020
1 parent d5c47ed commit 400b6c1
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/main/resources/META-INF/maven/site.vm
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,8 @@
})();
</script>
#end
#if ($decoration.body.head)
#foreach ($item in $decoration.body.head.getChildren())
## Workaround for DOXIA-150 due to a non-desired behaviour in p-u
## @see org.codehaus.plexus.util.xml.Xpp3Dom#toString()
## @see org.codehaus.plexus.util.xml.Xpp3Dom#toUnescapedString()
#set ($documentHeader = '<?xml version="1.0" encoding="UTF-8"?>')
#if ($item.name == "script")
$StringUtils.replace($item.toUnescapedString(), $documentHeader, "")
#else
$StringUtils.replace($item.toString(), $documentHeader, "")
#end
#end
#if( $decoration.body.head )
$render.eval( $decoration.body.head )
#end
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script src="${relativePath}/js/jcabi.js"></script>
Expand Down

0 comments on commit 400b6c1

Please sign in to comment.