Fixed: Braces Matching Not Working

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
User avatar
rjbill
Posts: 836
Joined: 13 Jun 2011 06:36

Fixed: Braces Matching Not Working

Post 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
RJTE version 14.72 (actual) - 64-bit
Win 10 Pro 64-bit 8 GB RAM Intel Core i7-6700 3.40 GHz SCSI Hard Drive 1 TB

Note: The signature is dynamic, not static,
so it may not show the correct version above
that was in use at the time of the post.

User avatar
pjj
Posts: 1849
Joined: 13 Oct 2009 13:48
Location: Kraków, Poland

Re: Braces Matching Not Working

Post by pjj »

Works for me.
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus

User avatar
rjbill
Posts: 836
Joined: 13 Jun 2011 06:36

Re: Braces Matching Not Working

Post by rjbill »

It might have to be experienced using the full document. I will send it to Rickard if he asks.
RJTE version 14.72 (actual) - 64-bit
Win 10 Pro 64-bit 8 GB RAM Intel Core i7-6700 3.40 GHz SCSI Hard Drive 1 TB

Note: The signature is dynamic, not static,
so it may not show the correct version above
that was in use at the time of the post.

User avatar
Rickard Johansson
Site Admin
Posts: 6087
Joined: 19 Jul 2006 14:29

Re: Braces Matching Not Working

Post 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.

User avatar
rjbill
Posts: 836
Joined: 13 Jun 2011 06:36

Re: ??? Braces Matching Not Working

Post by rjbill »

Sending you a file.
RJTE version 14.72 (actual) - 64-bit
Win 10 Pro 64-bit 8 GB RAM Intel Core i7-6700 3.40 GHz SCSI Hard Drive 1 TB

Note: The signature is dynamic, not static,
so it may not show the correct version above
that was in use at the time of the post.

Post Reply