For more than a year I have been plagued with a crazy bug in the Rapidweaver 7 and 8 compiler that produces useless code when trying to set up a resource macro for displaying images on a web page. I have finally become frustrated enough to spend the time to document the bug. Note Realmac has known about this bug for some time as will be shown by a search of this site. Nothing has been done to fix it. Unaccetable!!!
The bug seems to be random in that when inserting resource macros in a web page some will be just fine; then something will kick off the bug. Once created it will affect many subsequent macros.
Only fix I found was to create a space of several empty lines on a page. Then carefully type in the resource macro code. With care the “fresh” resource macro text will not be bastardized by the compiler (i.e. conversion to code shown in Preview and exported)
I created a web page to figure out what was going on.
I started with a problematic resource macro from a working webpage.
I then played a combination of detective and “monkey at the keyboard” to try to track down the problem.
Here is a summary demonstrating the bug:
Copy of lines of code produced by RW7 4 Apr 2019
I have inserted line returns [LR] to make this clearer; actual code is continuous
Text between [Junk Code Start] and [Junk Code End] is inserted by compiler. There is no visual evidence for why this should happen. It renders the resource macro useless.
Sample of working and non functioning code:
Line starting with:
6 is a correctly functioning resource macro
7 is a correctly functioning resource macro
8.0 Is the problematic resource macro with bogus commands inserted by compiler
8.0.0.0.1 is a correctly functioning macro created by inserting a return after line of problematic macro and then typing the exact same resource macro text. It functions normally. No junk formatting code has been inserted by the compiler.
The following is code shown when Show Source menu command is used:
Copy of lines of code produced by RW7 4 Apr 2019
I have inserted line returns [LR] to make this clearer; actual code is continuous
Text between [Junk Code Start] and [Junk Code End] is inserted by compiler. There is no visual evidence for why this should happen. It renders the resource macro useless.
Sample of working and non functioning code:
Line starting with:
6 is a correctly functioning resource macro
7 is a correctly functioning resource macro
8.0 Is the problematic resource macro with bogus commands inserted by compiler
8.0.0.0.1 is a correctly functioning macro created by inserting a return after line of problematic macro and then typing the exact same resource macro text. It functions normally. No junk formatting code has been inserted by the compiler.
The following is code shown when Show Source menu command is used:
6
[LR]
7
<img src=“resources/StrawMarket2.jpg”
[LR]
[LR]
8.0 4 Apr 19 start
[Junk Code Start]</ [Junk Code End] does not work [Junk Code Start]</ [Junk Code End]</
<img src= [Junk Code Start]</"% [Junk Code End]</resource(StrawMarket2.jpg)%" width=“400”>
[LR]
[LR]
8.0.0.0.1 Retype of macro; now works
<img src=resources/StrawMarket2.jpg width=“400”
[LR]