| Author | Post |
|---|
webmage Member
| Joined: | Tue Oct 4th, 2005 |
| Location: | Hawaii USA |
| Posts: | 15 |
|
Posted: Tue Mar 27th, 2007 01:13 am |
|
Hi Keith,
Using the below code I find the code changing every time I save whether tidy is on or off. can you tell me what I am doing wrong please?
Thanks a bundle,
Jes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<title>Sample</title>
<script type="text/javascript" src="editwrx/wrx.cgi?prompt"></script>
</head>
<body>
<div>1
<div>2
<div>3
<div>4
<div editblock="this1">5
<div excludeblock="linkdiv1">6
<div>7
<div>8
<div>9
</div>9A
</div>8A
</div>7A
</div><!-- excludeblock="linkdiv1" -->
6A
</div><!-- editblock="this1" -->
5A
</div>4A
</div>3A
</div>2A
</div>1A
</body>
</html> |
CHANGES TOO:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<title>Sample</title>
<script type="text/javascript" src="editwrx/wrx.cgi?prompt"></script>
</head>
<body>
<div>1
<div>2
<div>3
<div>4
<div editblock="this1">5
<DIV class="" excludeblock="linkdiv1">6
<div>7
<div>8
<div>9
</DIV>
<!-- excludeblock="linkdiv1" -->6AB</div><!-- editblock="this1" -->
5A
</div>4A
</div>3A
</div>2A
</div>1A
</body>
</html> |
|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 583 |
|
Posted: Wed Mar 28th, 2007 03:42 pm |
|
The multiple divs inside of the excludeblock are the problem. The write routine is centering itself on the wrong close </div> tag within that block.
On line 31 of /library/ini/write.txt change
while($PAGE =~ m!excludeblock="(.+?)"[^>]*>(.+?)</(span|div).+?excludeblock=""!sig){$exc{$1}=$2;}
to
while($PAGE =~ m!excludeblock="(.+?)"[^>]*>(.+?)</(span|div)\W+?excludeblock=""!sig){$exc{$1}=$2;}
I'll put that into the next update too.
|
webmage Member
| Joined: | Tue Oct 4th, 2005 |
| Location: | Hawaii USA |
| Posts: | 15 |
|
Posted: Mon Apr 2nd, 2007 02:27 am |
|
Hi Keith.
Still does not work now the same exact beginning code changes too:
<body>
<div>1
<div>2
<div>3
<div>4
<div editblock="this1">5
<DIV class="" excludeblock="linkdiv1"></DIV>
<!-- excludeblock="linkdiv1" -->6A </div><!-- editblock="this1" -->
5A
</div>4A
</div>3A
</div>2A
</div>1A
</body>
-------------------------------
yikes!
I completely reinstalled the newest editwrx, then modified the write.txt as per your instructions exactly before I tried it.
Thanks,
Jes
|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 583 |
|
Posted: Thu Apr 5th, 2007 09:41 pm |
|
This thread moved to
http://www.editwrx.com/forums/view_topic.php?id=272&forum_id=4&jump_to=1017
|
webmage Member
| Joined: | Tue Oct 4th, 2005 |
| Location: | Hawaii USA |
| Posts: | 15 |
|
Posted: Fri Apr 6th, 2007 10:16 pm |
|
YEAH ITS NOW PERFECT!
Thank's Keith.
I try not to find these deep obscure issues but alas....
As always, commendations on your superior product.
Jes
|
 Current time is 05:48 pm | |
|