r961 - trunk/tidy

randy at linuxfromscratch.org randy at linuxfromscratch.org
Wed Jun 1 08:06:31 PDT 2005


Author: randy
Date: 2005-06-01 09:06:30 -0600 (Wed, 01 Jun 2005)
New Revision: 961

Added:
   trunk/tidy/tidy-050531-prevent_PRE_newlines-1.patch
Log:
Added current Tidy patch

Copied: trunk/tidy/tidy-050531-prevent_PRE_newlines-1.patch (from rev 955, trunk/tidy/tidy-050502-prevent_PRE_newlines-1.patch)
===================================================================
--- trunk/tidy/tidy-050502-prevent_PRE_newlines-1.patch	2005-05-22 19:37:27 UTC (rev 955)
+++ trunk/tidy/tidy-050531-prevent_PRE_newlines-1.patch	2005-06-01 15:06:30 UTC (rev 961)
@@ -0,0 +1,31 @@
+Submitted By:            BLFS Book <blfs-book at linuxfromscratch.org>
+Date:                    2005-03-07
+Initial Package Version: 040914
+Upstream Status:         Unknown
+Origin:                  Nico R. submitted to lfs.dev mailing list
+Description:             Fixes an issue where an extra line feed is incorrectly 
+                         inserted when using the <pre></pre> tags
+
+$LastChangedBy$
+$Date$
+
+diff -Naur tidy-20040914T211547+0000.orig/src/pprint.c tidy-20040914T211547+0000/src/pprint.c
+--- tidy-20040914T211547+0000.orig/src/pprint.c	2004-09-14 21:13:08.000000000 +0000
++++ tidy-20040914T211547+0000/src/pprint.c	2004-09-14 22:08:08.000000000 +0000
+@@ -1976,14 +1976,14 @@
+             PPrintTag( doc, mode, indent, node );
+ 
+             indent = 0;
+-            PFlushLine( doc, indent );
++            if ( !nodeIsPRE(node) ) PFlushLine( doc, indent );
+ 
+             for ( content = node->content; content; content = content->next )
+             {
+                 PPrintTree( doc, (mode | PREFORMATTED | NOWRAP),
+                             indent, content );
+             }
+-            PCondFlushLine( doc, indent );
++            if ( !nodeIsPRE(node) ) PCondFlushLine( doc, indent );
+             indent = indprev;
+             PPrintEndTag( doc, mode, indent, node );
+ 


Property changes on: trunk/tidy/tidy-050531-prevent_PRE_newlines-1.patch
___________________________________________________________________
Name: svn:keywords
   + LastChangedBy Date




More information about the patches mailing list