By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,876 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,876 IT Pros & Developers. It's quick & easy.

HTML bold text display problem; when imported in XML

P: 2
I have HTML content defined in an external XML file:

<textBody><p>First line of text containing some <b>bold words</b>. More text with some <b>bold words</b> and then two line breaks.<br /><br />Here's some more text with <b>some more bold words</b> in the middle of it. Don't you think there's something strange about the spacing around these <b>bold words</b>? It seems to get worse with each extra appearance of a <b>bold word</b>. Thank you <b>for reading</b> my text.</p></textBody>
I am using code to identify when a <p> tag is present, so it is not treated as an XML node. I'm also using CDATA in some cases, and still have the same problem then (even worse) with letter-spacing.

... and here's a screenshot of the text rendered on screen from the HTML above:

Many thanks for help from anybody!
Mar 6 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.