roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (ROL-499) formatDate macro introduces whitespace into URLs
Date Sun, 18 Jul 2010 20:22:50 GMT

     [ 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.


Mime
View raw message