wxHtml bug? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
HzD_Byte
Knows some wx things
Knows some wx things
Posts: 27
Joined: Fri Feb 03, 2006 11:02 am

wxHtml bug?

Post by HzD_Byte »

wxHtmlWindow and wxHtmlListBox (possible all wxHtml controls) ignore first <br> tag in their text...

Example:

<HTML><META HTTP-EQUIV = "Content-Type" CONTENT = "text/html; charset=...."><BODY><BR><BR>TEXT</BODY></HTML>

This displays only one <BR> :(

If i add two <br> tags at the beginning, then <a name=...> + <a href=#...></a> works incorrect, it jumps like first (and second) <br> works.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Post by doublemax »

i'm not sure if this is really a bug. Even some "real" browsers ignore <br> after an empty line completely.
Using "&nbsp;<br>" instead should fix the problem.
Use the source, Luke!
HzD_Byte
Knows some wx things
Knows some wx things
Posts: 27
Joined: Fri Feb 03, 2006 11:02 am

Post by HzD_Byte »

but next <BR> tags work fine...
james.chengguangwang
Knows some wx things
Knows some wx things
Posts: 38
Joined: Wed Aug 02, 2006 4:59 am

Post by james.chengguangwang »

I came cross this problems, and I also don't understand why it is. Maybe the best solution is that to stand to that rule, I am so disappointed about that!
Post Reply