X-Git-Url: http://dolda2000.com/gitweb/?p=jsvc.git;a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Fnext%2FXmlWriter.java;h=a1004e44e137cfafb120abc24301f9d6f5e41f80;hp=6e7c9687371e442001752fd3d54de6216d5eb307;hb=938bdee151320b80b6f2b0dbb01c375a012e1aa4;hpb=5203590bbc5672cc6cc2df1b95179a97a2e42cda diff --git a/src/dolda/jsvc/next/XmlWriter.java b/src/dolda/jsvc/next/XmlWriter.java index 6e7c968..a1004e4 100644 --- a/src/dolda/jsvc/next/XmlWriter.java +++ b/src/dolda/jsvc/next/XmlWriter.java @@ -142,7 +142,7 @@ public class XmlWriter { } if(postbreak(out, el)) - out.indent(indent); + out.write('\n'); } protected void text(ColumnWriter out, String s, int indent) throws IOException { @@ -201,15 +201,4 @@ public class XmlWriter { write(w); w.flush(); } - - public static void main(String[] args) throws Exception { - Html barda = Html.xhtml11("Barda"); - barda.addcss("/slen.css", "Test"); - barda.insert("body", barda.el("h1", barda.text("Mast"))); - barda.finalise(); - XmlWriter w = new XmlWriter(barda.doc); - w.setnsname(Html.ns, null); - w.write(System.out); - System.out.flush(); - } }