<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Hi,</div><div class=""><br class=""></div><div class="">I just tried using the string.format_table function and it produces great output with simple code points but when I added the Smiley face, the layout has broken but it might be a terminal issue? I am using iTerm2 on Monterey.</div><div class="">Is this the expected behaviour or is it an issue in the rendering code?</div><div class="">It feels like the extra code unit for the Smiley internal storage has not been taken into account when calculating the padding.</div><div class=""><div class=""><br class=""></div><div class="">I took a look at the source code for string.m, the pad_row() predicate, lines 5206 to 5243 of mercury-srcdist-rotd-22.01 but I soon became lost in my train of thought, everything seemed to be using codepoints as the metric for calculating padding etc so I couldn't really find anything wrong. Assuming there is anything wrong which I am not sure of yet of course.</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier New" class="">Column 1                                      | Column1                                       | A quick brown fox jumps over the lazy dog.  ðŸ˜€</font></div><div class=""><font face="Courier New" class="">A quick brown fox jumps over the lazy dog.  ðŸ˜€ | Column 2                                      | Column 2</font></div><div class=""><font face="Courier New" class="">Column 3                                      | A quick brown fox jumps over the lazy dog.  ðŸ˜€ | Column 3</font></div><div class=""><font face="Courier New" class=""><br class=""></font></div><div class=""><font face="Courier New" class=""> > right justified</font></div><div class=""><font face="Courier New" class="">==================</font></div><div class=""><font face="Courier New" class="">                                     Column 1 |                                       Column1 | A quick brown fox jumps over the lazy dog.  ðŸ˜€</font></div><div class=""><font face="Courier New" class="">A quick brown fox jumps over the lazy dog.  ðŸ˜€ |                                      Column 2 |                                      Column 2</font></div><div class=""><font face="Courier New" class="">                                     Column 3 | A quick brown fox jumps over the lazy dog.  ðŸ˜€ |                                      Column 3</font></div><div class=""><b class=""><br class=""></b></div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Sean.</div><div class=""><br class=""></div></body></html>