@Override
public InputStream getContent() {
StringWriter writer = new StringWriter();
- write(new FilterCRWriter(writer));
+ write(String.format("%n").length() == 1 ? new FilterCRWriter(writer) : writer);
return new ByteArrayInputStream(writer.toString().getBytes(UTF8));
}
}
public static void main(String[] args) {
- ResourceRef Foo = new ResourceRef("Foo", "http://www.dsf.sdf/Foo");
+ /*ResourceRef Foo = new ResourceRef("Foo", "http://www.dsf.sdf/Foo");
ResourceRef Bar = new ResourceRef("Foo", "http://www.dsf.sdf/Bar");
Bar.deprecated = true;
new ResourceFile("org.simantics.graph", "Testi", Arrays.<ResourceRef>asList(
Foo, Bar
- )).write(new OutputStreamWriter(System.out));
+ )).write(new OutputStreamWriter(System.out));*/
+ System.out.println(String.format("%n").length());
}
}