summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gardiner <obz@gentoo.org>2003-11-08 05:43:11 +0000
committerMike Gardiner <obz@gentoo.org>2003-11-08 05:43:11 +0000
commit967f59ae0d6013c57ae68ba2cbcd48dc2fac04c0 (patch)
tree2eaa6226336d2a4378114a039357ca1f2176ad86 /app-text/htmltidy/files
parentNew version (diff)
downloadhistorical-967f59ae0d6013c57ae68ba2cbcd48dc2fac04c0.tar.gz
historical-967f59ae0d6013c57ae68ba2cbcd48dc2fac04c0.tar.bz2
historical-967f59ae0d6013c57ae68ba2cbcd48dc2fac04c0.zip
New version
Diffstat (limited to 'app-text/htmltidy/files')
-rw-r--r--app-text/htmltidy/files/03-html2db-null.patch117
-rw-r--r--app-text/htmltidy/files/03-htmltidy-docbook.patch98
-rw-r--r--app-text/htmltidy/files/digest-htmltidy-2.7.181
-rw-r--r--app-text/htmltidy/files/digest-htmltidy-3.10.293
4 files changed, 218 insertions, 1 deletions
diff --git a/app-text/htmltidy/files/03-html2db-null.patch b/app-text/htmltidy/files/03-html2db-null.patch
new file mode 100644
index 000000000000..926f57b9caf6
--- /dev/null
+++ b/app-text/htmltidy/files/03-html2db-null.patch
@@ -0,0 +1,117 @@
+--- html2b-unpatched/html2db/main.c 2003-03-11 04:28:46.000000000 +0800
++++ html2db/main.c 2003-11-08 12:32:41.000000000 +0800
+@@ -75,8 +75,8 @@
+ doc = tidyDocToImpl( tdoc );
+ out = FileOutput(stdout, 0, '\n');
+ doc->docOut = out;
+- PrintSgml( doc, 0, 0, doc->root );
+- doc->docOut = null;
++ PrintSgml( doc, 0, 0, &( doc->root ) );
++ doc->docOut = NULL;
+ }
+ else {
+ fprintf(stderr, "Problem parsing file %s\n", file);
+--- html2b-unpatched/html2db/pprint.c 2003-05-05 22:23:30.000000000 +0800
++++ html2db/pprint.c 2003-11-08 12:34:42.000000000 +0800
+@@ -341,7 +341,7 @@
+ Node *parent;
+
+ for (parent = element->parent;
+- parent != null; parent = parent->parent)
++ parent != NULL; parent = parent->parent)
+ { if (parent->element && tmbstrcasecmp(parent->element, "address") == 0)
+ return yes;
+ }
+@@ -488,7 +488,7 @@
+ Bool xhtml = cfgBool( doc, TidyXhtmlOut);
+ uint spaces = cfg( doc, TidyIndentSpaces );
+
+- if (node == null)
++ if (node == NULL)
+ return;
+
+ if (node->type == TextNode) {
+@@ -521,7 +521,7 @@
+ else if (node->type == RootNode)
+ {
+ for (content = node->content;
+- content != null;
++ content != NULL;
+ content = content->next)
+ PrintSgml(doc, mode, indent, content);
+ }
+@@ -565,7 +565,7 @@
+ PFlushLine(doc, indent);
+
+ for (content = node->content;
+- content != null;
++ content != NULL;
+ content = content->next)
+ PrintSgml(doc, (mode | PREFORMATTED | NOWRAP),
+ indent, content);
+@@ -574,7 +574,7 @@
+ PrintSgmlTag(doc, mode, indent, node, SgmlTagEnd);
+ PFlushLine(doc, indent);
+
+- if ( !cfg(doc, TidyIndentContent) && node->next != null )
++ if ( !cfg(doc, TidyIndentContent) && node->next != NULL )
+ PFlushLine(doc, indent);
+ }
+ else if (node->tag->model & CM_INLINE)
+@@ -586,7 +586,7 @@
+ indent += spaces;
+
+ for (content = node->content;
+- content != null;
++ content != NULL;
+ content = content->next)
+ PrintSgml(doc, mode, indent, content);
+
+@@ -598,7 +598,7 @@
+ {
+
+ for (content = node->content;
+- content != null;
++ content != NULL;
+ content = content->next)
+ PrintSgml(doc, mode, indent, content);
+ }
+@@ -607,7 +607,7 @@
+ }
+ else
+ { PCondFlushLine(doc, indent);
+-/* if (TidySmartIndent && node->prev != null)
++/* if (TidySmartIndent && node->prev != NULL)
+ PFlushLine(doc, indent);
+ */
+ PrintSgmlTag(doc, mode ,indent, node, SgmlTagStart);
+@@ -623,7 +623,7 @@
+ indent += spaces;
+
+ for (content = node->content;
+- content != null;
++ content != NULL;
+ content = content->next)
+ PrintSgml(doc, mode, indent, content);
+ PCondFlushLine(doc, indent);
+@@ -632,9 +632,9 @@
+ }
+ else
+ { Node *last;
+- last = null;
++ last = NULL;
+ for (content = node->content;
+- content != null;
++ content != NULL;
+ content = content->next) {
+ /* kludge for naked text before block level tag */
+ if (last && !cfg(doc, TidyIndentContent) &&
+@@ -654,7 +654,7 @@
+ PrintSgmlTag(doc, mode, indent, node, SgmlTagEnd);
+ PFlushLine(doc, indent);
+ if (cfg(doc, TidyIndentContent) == no &&
+- node->next != null &&
++ node->next != NULL &&
+ TidyHideEndTags == no &&
+ (node->tag->model & (CM_BLOCK|CM_LIST|CM_DEFLIST|CM_TABLE)))
+ PFlushLine(doc, indent);
diff --git a/app-text/htmltidy/files/03-htmltidy-docbook.patch b/app-text/htmltidy/files/03-htmltidy-docbook.patch
new file mode 100644
index 000000000000..78f1082c43ab
--- /dev/null
+++ b/app-text/htmltidy/files/03-htmltidy-docbook.patch
@@ -0,0 +1,98 @@
+--- src/pprint.c.old 2003-11-08 13:01:16.000000000 +0800
++++ src/pprint.c 2003-11-08 13:03:05.000000000 +0800
+@@ -40,7 +40,7 @@
+ static int TextEndsWithNewline( Lexer *lexer, Node *node, uint mode );
+ static int TextStartsWithWhitespace( Lexer *lexer, Node *node, uint start, uint mode );
+ static Bool InsideHead( TidyDocImpl* doc, Node *node );
+-static Bool ShouldIndent( TidyDocImpl* doc, Node *node );
++Bool ShouldIndent( TidyDocImpl* doc, Node *node );
+
+ #if SUPPORT_ASIAN_ENCODINGS
+ /* #431953 - start RJ Wraplen adjusted for smooth international ride */
+@@ -706,7 +706,7 @@
+ }
+ }
+
+-static void PPrintChar( TidyDocImpl* doc, uint c, uint mode )
++void PPrintChar( TidyDocImpl* doc, uint c, uint mode )
+ {
+ tmbchar entity[128];
+ ctmbstr p;
+@@ -941,7 +941,7 @@
+ to UTF-8 is deferred to the WriteChar() routine called
+ to flush the line buffer.
+ */
+-static void PPrintText( TidyDocImpl* doc, uint mode, uint indent,
++void PPrintText( TidyDocImpl* doc, uint mode, uint indent,
+ Node* node )
+ {
+ uint start = node->start;
+@@ -982,13 +982,11 @@
+ }
+ }
+
+-#if 0
+-static void PPrintString( TidyDocImpl* doc, uint indent, ctmbstr str )
++void PPrintString( TidyDocImpl* doc, uint indent, ctmbstr str )
+ {
+ while ( *str != '\0' )
+ AddChar( &doc->pprint, *str++ );
+ }
+-#endif /* 0 */
+
+
+ static void PPrintAttrValue( TidyDocImpl* doc, uint indent,
+@@ -1370,7 +1368,7 @@
+ AddChar( pprint, '>' );
+ }
+
+-static void PPrintComment( TidyDocImpl* doc, uint indent, Node* node )
++void PPrintComment( TidyDocImpl* doc, uint indent, Node* node )
+ {
+ TidyPrintImpl* pprint = &doc->pprint;
+
+@@ -1454,7 +1452,7 @@
+ PCondFlushLine( doc, indent );
+ }
+
+-static void PPrintPI( TidyDocImpl* doc, uint indent, Node *node )
++void PPrintPI( TidyDocImpl* doc, uint indent, Node *node )
+ {
+ TidyPrintImpl* pprint = &doc->pprint;
+ tchar c;
+@@ -1485,7 +1483,7 @@
+ PCondFlushLine( doc, indent );
+ }
+
+-static void PPrintXmlDecl( TidyDocImpl* doc, uint indent, Node *node )
++void PPrintXmlDecl( TidyDocImpl* doc, uint indent, Node *node )
+ {
+ AttVal* att;
+ uint saveWrap;
+@@ -1574,7 +1572,7 @@
+ WrapOn( doc, saveWrap );
+ }
+
+-static void PPrintCDATA( TidyDocImpl* doc, uint indent, Node *node )
++void PPrintCDATA( TidyDocImpl* doc, uint indent, Node *node )
+ {
+ uint saveWrap;
+ TidyPrintImpl* pprint = &doc->pprint;
+@@ -1593,7 +1591,7 @@
+ WrapOn( doc, saveWrap ); /* restore wrapping */
+ }
+
+-static void PPrintSection( TidyDocImpl* doc, uint indent, Node *node )
++void PPrintSection( TidyDocImpl* doc, uint indent, Node *node )
+ {
+ TidyPrintImpl* pprint = &doc->pprint;
+ Bool wrapSect = cfgBool( doc, TidyWrapSection );
+@@ -1900,7 +1898,7 @@
+
+
+
+-static Bool ShouldIndent( TidyDocImpl* doc, Node *node )
++Bool ShouldIndent( TidyDocImpl* doc, Node *node )
+ {
+ uint indentContent = cfg( doc, TidyIndentContent );
+ if ( indentContent == no )
diff --git a/app-text/htmltidy/files/digest-htmltidy-2.7.18 b/app-text/htmltidy/files/digest-htmltidy-2.7.18
deleted file mode 100644
index 40d794f8de51..000000000000
--- a/app-text/htmltidy/files/digest-htmltidy-2.7.18
+++ /dev/null
@@ -1 +0,0 @@
-MD5 7694dcdb7d451b17477292d60186f477 tidy_src_020718.tgz 153771
diff --git a/app-text/htmltidy/files/digest-htmltidy-3.10.29 b/app-text/htmltidy/files/digest-htmltidy-3.10.29
new file mode 100644
index 000000000000..7cf42139df8d
--- /dev/null
+++ b/app-text/htmltidy/files/digest-htmltidy-3.10.29
@@ -0,0 +1,3 @@
+MD5 bb81e507333c019bc56fa7c3d1a6ef3b tidy_src_031029.tgz 239167
+MD5 54ab968e177bc92495fce324c18f8b52 tidy_docs.tgz 152720
+MD5 ca15e9e877a304187a01547996a189a2 html2db.tar.gz 6028