PPrint.afterSpace raises NullPointerException
Hi, When a list item doesn't contain text but is followed with another list, parsing fails with error "Error: Panic - tree has lost its integrity". Test12 Here is the sample code. Thanks Tejashree public class TestJTidy { private final static Tidy tidy = new Tidy(); public static void main(String[] args) throws UnsupportedEncodingException { TestJTidy t = new TestJTidy(); t.setup(); String rawXHTML = "<ol><li>Test<ol><li>1</li></ol><ol><li><ol><li>2</li></ol></li></ol></li></ol>"; rawXHTML = rawXHTML.replaceAll("\t",...
Security error
Hi, I have a piece of HTML with an attribute containing a sequence of two backslashes and a new line character (\\ followed by the new line character). When parsed by JTidy (r938), one of the backslahes is gone, so then there is just one backslash and the new line character. Example (X stands for the new line character): <span data-value="a\\Xb">content</span> is parsed to <span data-value="a\Xb">content</span> Is this a desired behavior? Can JTidy be configured not to do this? Thanks for any help,...
Hi, I have a piece of HTML with an attribute containing a sequence of two backslashes and a new line character (\ followed by the new line character). When parsed by JTidy (r938), one of the backslahes is gone, so then there is just one backslash and the new line character. Example (X stands for the new line character): <span data-value="a\\Xb">content</span> is parsed to <span data-value="a\Xb">content</span> Is this a desired behavior? Can JTidy be configured not to do this? Thanks for any help,...
Does this have drag & drop support? Also can it handle millions of files being dragged into it in one session? I need to use this to clean up some html files from the geocities archive, needless to say there are several million html & htm files, so I need to know before hand if it can handle a huge amount of files in one session.
Hello all, Using Jtidy.parseDOM(bais,null) . it is creating new text node for space. For eg : rawXHTML :<b><span>EC3 </span><b> jtidy.parseDOM parses rawXHTML . it doesn't append space after EC3. but it creates new text node for space. result : [Node type=StartTag,element=body,content=[Node type=StartTag,element=b,content=[Node type=StartTag,element=span,content=[Node type=TextNode,element=null,text="EC3",content=null]], [Node type=TextNode,element=null,text=" ",content=null]]] Thanks, Prahalad public...
Hello all, Using Jtidy.parseDOM(bais,null) . it is creating new text node for space. For eg : rawXHTML : EC3 jtidy.parseDOM parses rawXHTML . it doesn't append space after EC3. but it creates new text node for space. result : [Node type=StartTag,element=body,content=[Node type=StartTag,element=b,content=[Node type=StartTag,element=span,content=[Node type=TextNode,element=null,text="EC3",content=null]], [Node type=TextNode,element=null,text=" ",content=null]]] Thanks, Prahalad public static void main(String[]...
Hello all, Using Jtidy.parseDOM(bais,null) . it is creating new text node for space. For eg : rawXHTML : EC3 jtidy.parseDOM parses rawXHTML . it doesn't append space after EC3. but it creates new text node for space. result : [Node type=StartTag,element=body,content=[Node type=StartTag,element=b,content=[Node type=StartTag,element=span,content=[Node type=TextNode,element=null,text="EC3",content=null]], [Node type=TextNode,element=null,text=" ",content=null]]] Thanks, Prahalad public static void main(String[]...
Will JTidy support HTML5 tag? I am using JTidy to pretty print the xhtml. However, I have found that JTidy does not support new tag introduced in HTML5 such seccion, svg, etc. Currently, I tried to skip this tag and allowing some tags by adding them in JTidy by property configuration. I want to know if jTidy/ Tidy will support HTML5 in the future. Or Do it really support it in the current version? Thanks.
Hello all Please tell me, how to calculate the mean of errors reported by JTidy for...
Hello all Please tell me, how to calculate the mean of errors reported by JTidy for...
You don't reference jTidy directly from the XSLT. You must first create a match pattern...
Hi, JTidy is not meant to be installed into Eclipse like a plugin, there are other...
Hi, When format textfile, "Reproduce_test.txt", which is generated in Japanese OS...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Hi Team, When a list item doesn't contain text but is followed with another list,...
Here are the test results of this patch mvn -Dtest=JTidyParserBugsTest test [INFO]...
Allowing Mixed Content in XML Document processing
Attached the file (sample.html) for which this issue is observed.
While cleaning a HTML file, JTidy throws following error Error: Panic - tree has...
Extra Space added after comma, semicolon, hyperlinks after cleaning using jtidy.
Hello all, Using JTidy.parseDOM(is, os) ends up changing the XHMTL formatting structure...
Hello all, Using JTidy.parseDOM(is, os) ends up changing the XHMTL formatting structure...
I think I also mentioned it a little bit in the forums before. Okay. I skimmed through...
I didn't know about CodeUpdateAndJava5. I wish I had before I started. Well, maybe...
Hey. Thanks for the info. I didn't know about CodeUpdateAndJava5. I wish I had before...
[EDIT: see aditsu's reply below about CodeUpdateAndJava5] Hi. I don't know if this...
[EDIT: see aditsu's reply below and CodeUpdateAndJava5] Hi. I don't know if this...
Hi there, I still plan to maintain jtidy, but currently I don't know when I will...
Sorry for the late reply. I was expecting Sourceforge to automatically email me notifications...
Sorry for the late reply. I was expecting Sourceforge to automatically email me notifications...
Good idea! That's a good idea. A question related to the current sources on the server:...
Hi. I don't know if this project is still active. I've created a fork of jtidy at...
sorry, but this is source that I am seeing in Lexer.java from jtidy-r938-sources.zip...
AttVal.isEvent throws NullPointerException
THe following code: <th><strong>Deductions<br /> </strong> (r)<strong>$</strong>...
The following code: <p>This is a <a id="Test" class="anchor">test</a></p> passed...
The following code: This is a test passed through jtidy comes out as: This is a test...
Sorry - there was typo in the version I gave to Francis there... Make that... (i.e....