You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "David Johnson (JIRA)" <ji...@apache.org> on 2010/07/18 22:22:50 UTC

[jira] Resolved: (ROL-499) formatDate macro introduces whitespace into URLs

     [ https://issues.apache.org/jira/browse/ROL-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Johnson resolved ROL-499.
-------------------------------

      Assignee: David Johnson  (was: Roller Unassigned)
    Resolution: Fixed

#formatDate macro replaced by  $utils.formatDate() which does not have this problem.

> formatDate macro introduces whitespace into URLs
> ------------------------------------------------
>
>                 Key: ROL-499
>                 URL: https://issues.apache.org/jira/browse/ROL-499
>             Project: Roller
>          Issue Type: Bug
>          Components: Macros
>            Reporter: Dave Gynn
>            Assignee: David Johnson
>            Priority: Minor
>
> The formatDate macro in roller.vm adds a carriage-return whitespace before and after the date.  In particular, this is causing a problem with inktomi crawler as it comes across permalink URLs with embedded whitespace.  
> The solution is to pull the whole macro into one line.
> #macro( formatDate $dateFormat $date )$dateFormatter.applyPattern($dateFormat)#if ($date)$dateFormatter.format( $date )#else$dateFormat#end#end

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.