I have the following Velocity template in JIRA (note, extra lines kept in):
NOTE: Please REPLY-TO this email when replying to this issue.
##parse("templates/email/includes/issueplugins.vm")
#if($comment.getId())[ ${baseurl}/browse/${issue.getKey()} ] #end ##?page=${tabpanel-comment}&focusedCommentId=${comment.getId()}#action_${comment.getId()} ] #end
#if($remoteUser.fullName)
$i18n.getText("template.issue.commented.on", $remoteUser.fullName, $issue.getKey())
#dashes($!remoteUser.fullName)--------------#dashes($issue.getKey())-
#end
#if($changelog)
#changes([])
#end
#comment()
#visibility()
#parse("templates/email/text/includes/issuesummary.vm")
#parse("templates/email/text/includes/footer.vm")
There is no line following that last line. When do I this on the very last line:
##parse("templates/email/text/includes/footer.vm")
我有以下错误:
An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug.
Details:
-------
org.apache.velocity.exception.ParseErrorException: Lexical error:
org.apache.velocity.runtime.parser.TokenMgrError:
Lexical error at line 20, column 51. Encountered: <EOF> after : ""
at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:272)
at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:202)
...
I found the following issue from 2004:
看来,这似乎在1.5处是固定的。 在我联合执行认证系统Info的检查中,我看到,联合执行监督委员会4.2.1似乎建议使用1.6版本:
Atlassian Template Renderer Velocity 1.6 Plugin - 1.1.1
当我把“<代码>#if($comment.getId()移至尾时,该错误就消失了。 我在模板结尾处做了一些错误的事情,还是这ug?
http://www.ohchr.org。
Hmm. 当我这样做时:
#if($comment.getId())[ ${baseurl}/browse/${issue.getKey()} ] #end ##?page=${tabpanel-comment}&focusedCommentId=${comment.getId()}#action_${comment.getId()} ] #end
作为最后一行,没有一条空线,我有同样的错误。 然而,如果在这条线之后添加一条线(一旦打上<条码>ENTER),则行文。
磁性模板是否需要一个结束的空间? 我很混淆。