Hi.
For some unknown reason Wt(2.1.5) produces translated strings with
starting and trailing garbage (newlines and whitespaces).
Dumping such strings shows
10 32 32 32 <Normal string> 10 32 32 32
or similar output (I don't remember).
Strings of such kind are misinterpreted by firefox when used in title.
In all the rest situations - they are not observed as bad in HTML (in my
setup).
Attached patch works around this problem, but I guess the real problem
is in mxml...
I'm not sure, maybe my input is outdated (I see 2.99 available), but I
just wanted to make you know about it just in case...
--
Andrii Arsirii
Streamco
http://streamco.org.ua
Index: WString.C
===================================================================
--- WString.C (revision 2481)
+++ WString.C (working copy)
@@ -167,6 +167,14 @@
replace(result, key, impl_->arguments_[i]);
}
+ // Hack to remove garbage (unknown source of) from
+ // translated strings
+ while(!result.empty() && (result[0] == 10 || result[0] == 32))
+ result.erase(0, 1);
+
+ while(!result.empty() && (result[result.size()-1] == 10 || result[result.size()-1] == 32))
+ result.erase(result.size()-1);
+
return result;
} else
return utf8_;
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest