Page 1 of 1

Fixed: Braces Matching Not Working

Posted: 24 Aug 2020 22:15
by rjbill
The "for" braces matching for this embedded PHP code in HTML-Multi isn't working.

Code: Select all

for ($nPageNum = 1;  $nPageNum <= $nPages;  ++$nPageNum) {

   if ($nPageNum != $nPage  or  $nPageNum == 1)
      echo '<a href="index.php?p=' . $nPageNum . '#imagery" title="View Page ' . $nPageNum . '">';

   else
      echo '<span title="Viewing Page ' . $nPageNum . '"><u>';

   echo $nPageNum;

   if ($nPageNum != $nPage  or  $nPageNum == 1)
      echo '</a>';

   else
      echo '</u></span>';

   echo "\n &nbsp; ";

} // for

Re: Braces Matching Not Working

Posted: 25 Aug 2020 06:10
by pjj
Works for me.

Re: Braces Matching Not Working

Posted: 25 Aug 2020 23:05
by rjbill
It might have to be experienced using the full document. I will send it to Rickard if he asks.

Re: Braces Matching Not Working

Posted: 25 Oct 2020 13:11
by Rickard Johansson
I can't reproduce it either.

I know it's been a while, but it may help if you send the entire document.

Re: ??? Braces Matching Not Working

Posted: 27 Oct 2020 02:06
by rjbill
Sending you a file.