Tags:
create new tag
, view all tags

SID-00681: VarINCLUDE prepend a <p /> before included Topic

Status: Answered Answered TWiki version: 4.2.2 Perl version:
Category: CategoryRendering Server OS: Last update: 1 year ago

Is there any switch to disable this behavior?

-- BoGao - 2009-12-19

Discussion and Answer

it prepend paragraph mark "<p />"

-- BoGao - 2009-12-19

Not sure, might be a bug if you include the whole topic? An empty line gets converted into a "<p />" tag.

You can use STARTINCLUDE and STOPINCLUDE to control what gets included.

Here is an example. Define some text, all in one line:

Text enclosed in start/stop

Now lets INCLUDE that into a TWiki table row:

Cell to the right includes this topic: Text enclosed in start/stop

As you can see the TWiki table renders properly. It would break in case the INCLUDEd text would contain a newline.

-- PeterThoeny - 2010-01-24

I used STARTINCLUDE and STOPINCLUDE, it works for normal topic, but there's will be a page break if I add CSS div into the topic

-- BoGao - 2010-02-02

I found the reason, if we separate multiple INCLUDE by Carriage Return under raw edit mode, we'll get page break. If we use Space instead, everything is ok.

Is it expected behavior? CR is better than Space for good coding style.

-- BoGao - 2010-02-03

Make sure the STARTINCLUDE is followed by some text on the same line, and STOPINCLUDE precedes some text on the same line.

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider a subscription for support or engage one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!

-- PeterThoeny - 2010-04-05

Change status to:

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
SupportForm
Status Answered
Title VarINCLUDE prepend a <p /> before included Topic
SupportCategory CategoryRendering
TWiki version 4.2.2
Server OS

Web server

Perl version

Topic revision: r6 - 2010-04-05 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.