[ 
https://issues.apache.org/jira/browse/TAPESTRY-2028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562187#action_12562187
 ] 

Kevin Menard commented on TAPESTRY-2028:
----------------------------------------

Yeap.  I ran into problems.  Nothing catastrophic, but a lot of our pages look 
crappy now.

We have something like the following in our templates:

<strong>Order Placed:</strong> <t:outputdate value="order.date" format="MMMM d, 
y"/>

OutputDate is a component we have for rendering dates.  It doesn't add 
whitespace itself because it may not always be appropriate.  For example, if 
used as a value in a table cell.  So, the whitespace in the template is 
important.  Now, that space after the ending strong tag is eaten up, so rather 
than see:

Order Placed: January 22, 2008

we get:

Order Placed:January 22, 2008

Incidentally, I forgot about this issue and spent time scrubbing the templates 
trying to figure out what was going on.  Shame on me, I guess, but I'm likely 
not to be the only one.

Perhaps preserving one space between tags would help.

> Mimimize whitespace in the output markup
> ----------------------------------------
>
>                 Key: TAPESTRY-2028
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2028
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.7
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.8
>
>
> Tapestry (4 and 5) has traditionally honored all the white space in a 
> template.  This is for a few specific cases, such as text inside a <pre> 
> element (who uses those?).
> This results in output documents that, due to the extra whitespace that often 
> surrounds Tapestry components, contain large amounts of whitespace.
> In most cases, interior white space (whitespace between text characters) can 
> be reduced to a single space, and white space just after a tag or just before 
> a tag can be eliminated entirely.
> The Tapestry template parser should honor the xml:space attribute and use it 
> to determine what template whitespace is relevant, and what whitespace may be 
> minimized or eliminated.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to