You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mu...@apache.org on 2023/03/08 08:35:01 UTC

[xalan-test] branch master updated: suppressing jtidy error messages like 'line 2 column 1 - Error: is not recognized!' during html document parsing when xalanj tests are running

This is an automated email from the ASF dual-hosted git repository.

mukulg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xalan-test.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d64bb3f suppressing jtidy error messages like 'line 2 column 1 - Error: <root> is not recognized!' during html document parsing when xalanj tests are running
1d64bb3f is described below

commit 1d64bb3ff1006d919338ae0f1ba270a8be1748dd
Author: Mukul Gandhi <ga...@gmail.com>
AuthorDate: Wed Mar 8 14:04:38 2023 +0530

    suppressing jtidy error messages like 'line 2 column 1 - Error: <root> is not recognized!' during html document parsing when xalanj tests are running
---
 java/src/org/apache/qetest/xsl/XHTComparator.java | 3 ++-
 tools/jtidy.README.txt                            | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/java/src/org/apache/qetest/xsl/XHTComparator.java b/java/src/org/apache/qetest/xsl/XHTComparator.java
index 3832fcd4..fcb6cbd6 100644
--- a/java/src/org/apache/qetest/xsl/XHTComparator.java
+++ b/java/src/org/apache/qetest/xsl/XHTComparator.java
@@ -687,8 +687,9 @@ public class XHTComparator
     	        tidy.setXHTML(true);
     	        tidy.setTidyMark(false);
     	        tidy.setShowWarnings(false);
+                tidy.setShowErrors(0);
     	        tidy.setQuiet(true);
-    	        doc  = tidy.parseDOM(new URL(docURI).openStream(), null);
+    	        doc = tidy.parseDOM(new URL(docURI).openStream(), null);
             }
             catch (Exception e)
             {
diff --git a/tools/jtidy.README.txt b/tools/jtidy.README.txt
index ec44436f..a80ac3ed 100644
--- a/tools/jtidy.README.txt
+++ b/tools/jtidy.README.txt
@@ -1,6 +1,6 @@
 Tidy Jar -  Java version of a HTML syntax checker and pretty printer
 
-Sourced From:   http://sourceforge.net/projects/jtidy	
-Used By: 	xml-xalan/test 
+Sourced From   :   https://github.com/jtidy/jtidy	
+Used By        :   XalanJ tests 
 
 See jtidy.LICENSE.txt and web site for further information


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xalan.apache.org
For additional commands, e-mail: commits-help@xalan.apache.org