Thread:Extension talk:Arrays/Create Tablerows in an Array/reply (2)

One way to deal with this type of issue is to use something that will be considered whitespace by HTML, but will not be considered whitespace (and therefore not be trimmed) by arrayprint:

...the &amp;#32; here is seen as "not whitespace" by arrayprint and MediaWiki, so it, and the newline that follows, is not trimmed...but it's an HTML escape sequence for a space character, and HTML largely ignores whitespace characters, so the extra space at the end of the preceding line is ignored by web browsers.

Don't forget that this way of printing table rows will only give you the new table row and beginning of element symbols between rows, so you need to start a row and an element before the call to this template, i.e. the full table would look like:

(Except, of course, that you'll be parsing @@@@ into a full row of table content, unless this is a simple list displayed in table format.)

I have one template on my wiki that prints table rows via arrayprint without using this trick, but I can't for the life of me figure out why it's working, and I think this trick is probably safer than whatever is making that template work. If you end up accidentally adding an extra line of whitespace in the table, that gets ignored, but a missing line of whitespace causes big problems.