[WM] Omitted addxmlslashes ignored if image sizing occurs.
Carl Braesicke
Carl.Braesicke at mail.tamucc.edu
Thu Aug 18 20:31:03 IST 2005
Omitted addxmlslashes ignored if image sizing occurs.
WebMake version 2.3
<img src="$(image.jpg)">
addxmlslashes is omitted from <out clean="...">
${IMGSIZE} appears in <img> or addimgsizes is included in <out>
-> the <img> tag is addxmlshashed
Reproducer:
<webmake>
<content name=bug1>
<img src="$(logo.jpg)" alt="bug1">
</content>
<content name=bug2>
<img src="$(logo.jpg)" ${IMGSIZE} alt="bug2">
</content>
<content name=bug3>
<img src="$(logo.jpg)" alt="bug3">
</content>
<media src="images" name="logo.jpg"/>
<out clean="pack addimgsizes cleanattrs fixcolors indent" file="bug1.html" name="bug1">${bug1}</out>
<out clean="pack cleanattrs fixcolors indent" file="bug2.html" name="bug2">${bug2}</out>
<out clean="pack cleanattrs fixcolors indent" file="bug3.html" name="bug3">${bug3}</out>
</webmake>
$ rm bug*.html
rm: cannot lstat `bug*.html': No such file or directory
$ webmake -f bug.wmk
webmake: making: bug1.html
webmake: making: bug2.html
webmake: making: bug3.html
$ grep img bug*.html
bug1.html:<img src="images/logo.jpg" width="210" height="150" />
bug2.html:<img src="images/logo.jpg" width="210" height="150" />
bug3.html:<img src="images/logo.jpg">
Regards,
Carl B., x2796
More information about the WebMake-Talk
mailing list