PDA

View Full Version : HTML export V10 - SP1 formatting bold and CRLF


Unregistered
November 5, 2002, 21:52:03
I found out that the tag <B> is not set correctly with marked fields and hyperlinks.

Whenever you use Enter for a new line in TX this is exported to <P>. So you get an extra line in HTML. How can I get <BR> instead of the <P>

Gunthard


This message was originally posted by Gunthard Pupke in the old TX Text Control Support Forum.

Unregistered
November 9, 2002, 13:33:39
Hi

I am not sure this is the answer but we have a similar problem in that when we pressed the CR key the TX control displayed it as expected but the HTML lost the line by replacing it with a <p> tag. I got around this problem by doing the following in the textcontrol keypress event
Private Sub TXTextControl1_KeyPress(KeyAscii As Integer)

Static LastKey As Integer

If KeyAscii = 13 And LastKey <> -9 Then
LastKey = -9
KeyAscii = 0
Call SendKeys("+{ENTER}")
Else
LastKey = KeyAscii
End If

End Sub
I have not completed testing this but if you use shift + cr in the tx editor and save it , saved a <BR> tag so all I have done is replace all CR with a shift enter. Seems to work I am sure my testers will let me know otherwise


This message was originally posted by Paul in the old TX Text Control Support Forum.