1 Reply Latest reply on Jul 11, 2012 3:54 PM by james_quiggins

    PHP Site Assistant inserts extra space between words in field labels

    AndreasT

      Summary

      PHP Site Assistant inserts extra space between words in field labels

      Product

      FileMaker Server

      Version

      11

      Operating system version

      Mac

      Description of the issue

      The PHP site assistant generates code to display field labels as such:


      <?php echo str_replace(' ', '  ',htmlentities('<>',ENT_NOQUOTES,'UTF-8',false));?>
      </td

      The purpose of the str_replace function is to substitute all spaces with a non-breaking space to ensure that labels stay on one line.
      There is however an extra space after the   and thus the whole idea is for naught.
      The labels ends up having two spaces between words and will line-break as before.

      Steps to reproduce the problem

      Run the PHP Site assistant using field labels with more than one word.

      Expected result

      The extra space should not be there and the label should not line-break.

      Actual result

      The label line-breaks.

      Workaround

      Remove the extra space by hand in the relevant files.