You are here: Foswiki>Tasks Web>Item2784 (07 Jan 2015, GeorgeClark)Edit Attach

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 wink 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

ItemTemplate edit

Summary template system often generates extra <p /> at the bottom of the page
ReportedBy TWiki:Main.StephaneLenclud
Codebase
SVN Range TWiki-4.1-beta1, Mon, 24 Jul 2006, build 11161
AppliesTo Engine
Component FoswikiTemplates
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r10 - 07 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy