I'm having no luck with Append and RenderAppend and the handling of <br> tags
I'm expecting:
But I'm getting
Notice how any appends that start with <br> and some text after the tag don't even show up. The only <br> that seems to work correctly is when it is used on its own without any text before or after the tag. Using RenderAppend instead of Append produced the same results.
Update: As soon as I posted this, I noticed that sometimes I used "body" and sometimes "Body". Changing all items to lower case did not change the result.
Environment information:
Windows 10 Pro 64-bit (1809)
B4J 7.32 using JDK 11.01
BANano 2.39
Chrome 74.0.372.131 (Official Build) (64-bit)
Firefox 66.0.4 (64-bit)
Web server: B4J jServer with files produced by BANano placed within the www folder
B4X:
BANano.GetElement("Body").Append("Break")
BANano.GetElement("Body").Append("<br>")
BANano.GetElement("Body").Append("On its own")
BANano.GetElement("Body").Append("<br>Text after")
BANano.GetElement("body").Append("Text before<br>")
BANano.GetElement("Body").Append("<br> Text after") ' This one and the next one are just to see if spacing makes a difference
BANano.GetElement("body").Append("Text before <br>")
BANano.GetElement("body").Append("Break<br>in the middle")
B4X:
Break
On its own
Text afterText before
Text afterText before
Break
in the middle
B4X:
Break
On its own
Text before<br>
Text before <br>Break<br>in the middle
Update: As soon as I posted this, I noticed that sometimes I used "body" and sometimes "Body". Changing all items to lower case did not change the result.
Environment information:
Windows 10 Pro 64-bit (1809)
B4J 7.32 using JDK 11.01
BANano 2.39
Chrome 74.0.372.131 (Official Build) (64-bit)
Firefox 66.0.4 (64-bit)
Web server: B4J jServer with files produced by BANano placed within the www folder