How do I preserve leading spaces with CreateTextNode. I've got something like
I'd like to preserve the leading space so that all the = line up.
Code:
sub AddHowTo (txt)
HowToTxt.appendChild document.CreateTextNode (txt)
HowToTxt.appendChild document.CreateElement ("br")
end sub
AddHowTo "m = (y2 - y1)/(x2 - x1)"
AddHowTo " = " & cstr(y2 - y1) & " / " & cstr(x2 - x1)
AddHowTo " = " & cstr(m)