Author: michael_meeks
Date: Mon Oct 13 11:21:40 2008
New Revision: 52098
URL: http://svn.opensuse.org/viewcvs/yast?rev=52098&view=rev
Log:
2008-10-13 Michael Meeks
* src/YGUtils.cc (ygutils_convert_to_xhtml): re-work the
lower-casing, so we don't lower-case attribute values
* src/test.cc (testXHtmlConvert): add test, and make
regression tests pass again.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGUtils.cc
trunk/gtk/src/test.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=52098&r1=52097&r2=52098&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Mon Oct 13 11:21:40 2008
@@ -1,3 +1,10 @@
+2008-10-13 Michael Meeks
+
+ * src/YGUtils.cc (ygutils_convert_to_xhtml): re-work the
+ lower-casing, so we don't lower-case attribute values
+ * src/test.cc (testXHtmlConvert): add test, and make
+ regression tests pass again.
+
2008-10-12 Ricardo Cruz
* src/ygtkratiobox.h/c & src/YGWidget.h/cc: ask for widgets
Modified: trunk/gtk/src/YGUtils.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUtils.cc?rev=52098&r1=52097&r2=52098&view=diff
==============================================================================
--- trunk/gtk/src/YGUtils.cc (original)
+++ trunk/gtk/src/YGUtils.cc Mon Oct 13 11:21:40 2008
@@ -322,7 +322,7 @@
else
tag_len++;
}
- g_string_append_c (tag, g_ascii_tolower (instr[i]));
+ g_string_append_c (tag, instr[i]);
}
// Unmatched tags
@@ -351,7 +351,8 @@
}
if (unquote)
g_string_insert_c (tag, j, '"');
- }
+ } else
+ tag->str[j] = g_ascii_tolower (tag->str[j]);
}
// Is it an open or close ?
Modified: trunk/gtk/src/test.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/test.cc?rev=52098&r1=52097&r2=52098&view=diff
==============================================================================
--- trunk/gtk/src/test.cc (original)
+++ trunk/gtk/src/test.cc Mon Oct 13 11:21:40 2008
@@ -51,10 +51,12 @@
// outer tag
{ "some text", "<body>some text</body>" },
// unquoted attributes
- { "<foo baa=Foo></foo>", "<body></foo></body>" },
+ { "<foo baa=Baz></foo>", "<body></foo></body>" },
// break tags
{ "<br>", "<body><br/></body>" },
{ "<hr>", "<body><hr/></body>" },
+ // close with different case ...
+ { "<p>Foo</P>", "<body><p>Foo</p></body>" },
// unclosed tags
{ "<p>", "<body><p></p></body>" },
{ "<b>unclosed", "<body><b>unclosed</b></body>" },
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org