Skip to content

Commit e4f5783

Browse files
committedAug 24, 2015
Possible test case fix
The issue seems to be fixed by setting wraplen to zero there has to be an underlying cause for this though
1 parent 255b383 commit e4f5783

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed
 

‎src/main/java/org/w3c/tidy/OutJavaImpl.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
* have been possible without all of you.
2121
*
2222
* COPYRIGHT NOTICE:
23-
*
23+
*
2424
* This software and documentation is provided "as is," and
2525
* the copyright holders and contributing author(s) make no
2626
* representations or warranties, express or implied, including
2727
* but not limited to, warranties of merchantability or fitness
2828
* for any particular purpose or that the use of the software or
2929
* documentation will not infringe any third party patents,
30-
* copyrights, trademarks or other rights.
30+
* copyrights, trademarks or other rights.
3131
*
3232
* The copyright holders and contributing author(s) will not be
3333
* liable for any direct, indirect, special or consequential damages
@@ -43,7 +43,7 @@
4343
* not be misrepresented as being the original source.
4444
* 3. This Copyright notice may not be removed or altered from any
4545
* source or altered source distribution.
46-
*
46+
*
4747
* The copyright holders and contributing author(s) specifically
4848
* permit, without fee, and encourage the use of this source code
4949
* as a component for supporting the Hypertext Markup Language in

‎src/main/java/org/w3c/tidy/PPrint.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ private void wrapLine(Out fout, int indent)
380380
}
381381

382382
q = wraphere;
383+
// possible issue!!! Willie
383384
addC('\0', linelen);
384385

385386
while (true)
@@ -1836,7 +1837,7 @@ static boolean hasCDATA(Lexer lexer, Node node)
18361837

18371838
/**
18381839
* Print script and style elements. For XHTML, wrap the content as follows:
1839-
*
1840+
*
18401841
* <pre>
18411842
* JavaScript:
18421843
* //&lt;![CDATA[
@@ -1855,7 +1856,7 @@ static boolean hasCDATA(Lexer lexer, Node node)
18551856
* content
18561857
* ]]>
18571858
* </pre>
1858-
*
1859+
*
18591860
* @param fout
18601861
* @param mode
18611862
* @param indent

‎src/test/java/org/w3c/tidy/tests/WordCharacterTest.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ public void setUp() {
4242
// ensure doctype
4343
this.tidy.setDocType("auto");
4444

45-
//tidy.setShowWarnings(true);
45+
this.tidy.setWord2000(true);
46+
this.tidy.setMakeBare(true);
47+
//this.tidy.setWraplen(0); // if wrapping is enabled it creates our issue.... disable by setting 0
48+
49+
this.tidy.setShowWarnings(true);
4650
this.tidy.setSmartIndent(true);
4751
this.tidy.setMessageListener(new TidyMessageListener() {
4852
@Override

0 commit comments

Comments
 (0)
Please sign in to comment.