Creating announcements with tables

Document ID : KB000121646
Last Modified Date : 28/11/2018
Show Technical Document Details
Introduction:
When trying to create announcement with a table in it, with the following code introduced, the top of the announcement will show a large amount of white space.

HTML Code:
Test Announcement:
<TABLE border="1" width="100"> 
<TR> 
<TD>Col 0</TD> 
<TD>Col 1</TD> 
<TD>Col 2</TD> 
<TD>Col 3</TD> 
</TR> 
<TR> 
<TD>Col 0</TD> 
<TD>Col 1</TD> 
<TD>Col 2</TD> 
<TD>Col 3</TD> 
</TR> 
<TR> 
<TD>Col 0</TD> 
<TD>Col 1</TD> 
<TD>Col 2</TD> 
<TD>Col 3</TD> 
</TR> 
<TR> 
<TD>Col 0</TD> 
<TD>Col 1</TD> 
<TD>Col 2</TD> 
<TD>Col 3</TD> 
</TR> 
</TABLE>


Resultant display:
User-added image
Environment:
Service Desk Manager and Service Management 14.1 and higher
Instructions:
The reason this happens is because Service Desk is rendering both the HTML code and the line breaks introduced in between the HTML code at once.  As the extra line breaks are unnecessary, one can workaround on this by removing the extra line breaks, causing the entire HTML code sequence to be expressed in a single string.  

The same HTML code described above can be written as:

Test Announcement:
<TABLE border="1" width="100"><TR><TD>Col 0</TD><TD>Col 1</TD><TD>Col 2</TD><TD>Col 3</TD></TR><TR><TD>Col 0</TD><TD>Col 1</TD><TD>Col 2</TD><TD>Col 3</TD></TR><TR><TD>Col 0</TD><TD>Col 1</TD><TD>Col 2</TD><TD>Col 3</TD></TR><TR><TD>Col 0</TD><TD>Col 1</TD><TD>Col 2</TD><TD>Col 3</TD></TR></TABLE>


Which will result in this display in the announcements:
User-added image