Superfluous spaces in feed ftl's
--------------------------------

                 Key: MGNLRSSAGG-48
                 URL: http://jira.magnolia-cms.com/browse/MGNLRSSAGG-48
             Project: Magnolia RSS Aggregator Module
          Issue Type: Improvement
    Affects Versions: 1.2.1, 1.1.3
            Reporter: Felix Rabe
            Assignee: Felix Rabe
         Attachments: Screen shot 2011-04-27 at 2.14.39 PM.png

My fixes for MGNLRSSAGG-47 introduced spaces where there should be none.  The 
attached screenshot is the "On the Blogs" part of the current (2.3/2.4) 
corporate website, http://www.magnolia-cms.com/.  (One space is caused by the 
blog post, not by the tag removal, and thus not pointed at in the screenshot.)  
The problem is that all tags are converted to a space (" ").  In some 
situations, that is not appropriate, and the result is ugly.

The original solution tackled the case of "... paragraph.</p><h1>Heading" 
becoming "... paragraph.Heading".

Solution proposal: Change:
{code:none}
?replace("</?[^>]*(>|$)|&nbsp;?|&#?[0-9A-Za-z]*$", " ", "r")
{code}
into:
{code:none}
?replace("</[^>]*><[^/>]*>|&nbsp;?", " ", 
"r")?replace("</?[^>]*(>|$)|&#?[0-9A-Za-z]*$", "", "r")
{code}
such that {{"</x><y>"}} and {{"&nb&#8203;sp;"}} become " " (one space 
character), whereas any other tags, and end-of-string (partial) entities become 
"" (i.e. removed).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to