Rendering a topic with
plain.classic
skin generates a few extra
<p />
at the bottom of the page.
This causes problem if like me you want to show a topic with just an image from another topic using inline frame
<iframe>
. It adds noises after the image causing the topic in the
<iframe>
to be bigger that the image itself. So if your frame was calibrated to be the same size as the picture it then shows scrollbars and that's not what you I want
I had the same rendering behavior with both IE and Firefox (Windows and Linux).
A workaround is to remove newline character from the last few lines of
view.plain.classic.tmpl
.
So you get something like that:
%META{"form"}%%META{"attachments"}%#PageBottom</body></html>
Instead of:
%META{"form"}%
%META{"attachments"}%
#PageBottom</body></html>
But this does not seem to be a proper fix. My guess is that there is an issue with the template processing code. Then again I don't know much about template processing in TWiki.
--
TWiki:Main.StephaneLenclud
This is probly too instrusive a change to include in the 4.1.0 release (will need with a final, clean-HTML step, or some cleverness in readTemplate)
as its a problem for all skins - pattern has just managed to find a way to stop it from happening
-- SD
Agreed, too risky for 4.1.0 release to make a change now.
This bug is probably an artefact of removing the "kill leading and trailing empty lines" feature that was done in one of the 4.0.x releases. Incompatible spec changes usually bite back.
--
PTh
odd, I recal having the same issues in Cairo and Bejing - but really, water under one bridge or another
-- SD
Closing this as no action. I recall that there was a big effort to handle newlines at end of templates, and an ASSERT added to catch extraneous data at end of the topic.
--
GeorgeClark - 07 Jan 2015