I want to display an image with a title and an alt attribute. They both display the same content which is stored in a variable. Before displaying I replace all occurences of "\n" with " ". Now the interesting part: When hovering over the image, the title displays the text correctly (sentence under sentence) but the alt text shows " " instead of breaking the lines.
What the heck is going on? O_o
Thanks for your help!
EDIT:
...
tooltipText = tooltipText.replaceAll("\n", " ");
startElement(HTML.IMG_ELEM, someName);
writeAttribute(HTML.TITLE_ATTR, tooltipText);
writeAttribute(HTML.ALT_ATTR, tooltipText);
...