Re: Removing extra blank lines from generated html?
Re: Removing extra blank lines from generated html?
- Subject: Re: Removing extra blank lines from generated html?
- From: Hugi Þórðarson <email@hidden>
- Date: Fri, 18 Apr 2008 22:12:50 +0000
How extreme do you want to get? You can work some wonders with your
HTML in dispatchRequest
Personally, I find that this generates the cleanest possible response:
public WOResponse dispatchReqcuest( WORequest request ) {
WOResponse respone = super.dispatchRequest( request );
response.setContent( "" );
return response;
}
... although you might want to do some more interesting processing on
the response's content() ;-). At least, you should get the general
idea - dispatchRequest is an excellent place to postprocess the HTML
created by your app.
- hugi
// Hugi Thordarson
// http://hugi.karlmenn.is/
On 18.4.2008, at 21:35, John Huss wrote:
Why do you care about the blank line? Or do you want to remove all
extra whitespace of any kind?
John
On Fri, Apr 18, 2008 at 4:29 PM, Alan Zebchuk <email@hidden
> wrote:
Does anyone have a solution for removing the extra blank lines from
the html generated by a component? i.e. when there's a conditional
where the condition is false, the generated html has blank lines
where the conditional would have been.
Thanks,
Alan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden