I think I tried to add code that checked TD and A tags to see if they only
included IMG tags (and maybe something else, can't remember right now) and
automatically turn off prettyprint in these cases. Won't fix your problem
though. You would also think you could do something like
A a = new A();
a.setPrettyPrint(false);
then use it to get the right results. I was having problems getting this
working so I started writing classes like this when I do not want line
breaks for a specific element.
// JDK Imports
import java.io.*;
// Turbine/Village/ECS Imports
import org.apache.ecs.html.*;
/**
* This A tag eliminates linebreaks which may destroy image/page design.
*
* @author John McNally
*/
public class PackedA extends A
{
public void output(OutputStream out)
{
setPrettyPrint(false);
super.output(out);
}
public void output(PrintWriter out)
{
setPrettyPrint(false);
super.output(out);
}
}
----- Original Message -----
From: Chris Chiu <[EMAIL PROTECTED]>
To: ECS <[EMAIL PROTECTED]>
Sent: Thursday, March 09, 2000 12:49 PM
Subject: Re: How can I set pretty print to all elements...
> In ECS 1.2, this introduces line feed in <A> elements. So the underline
> extends beyond the words in Internet Explorer. I guess I can turn off
> pretty print for <A> nodes. Is there an easy way to get around this?
>
> For example, you get
>
> <A href="http://somewhere">
> click here
> </A>
>
>
> ----- Original Message -----
> From: "Mino Madzia" <[EMAIL PROTECTED]>
> To: "ECS" <[EMAIL PROTECTED]>
> Sent: March 5, 2000 9:02 AM
> Subject: Re: How can I set pretty print to all elements...
>
>
> >
> >
> > Li Ma wrote:
> > >
> > > Or set default to true to all element.
> >
> > set it in ecs.properties file in org/apache/ecs dir
> >
> > mino
> >
> >
> > --
> > ------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe:
[EMAIL PROTECTED]
> > Archives and Other: <http://java.apache.org/main/mail.html>
> > Problems?: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]