SID-00681: VarINCLUDE prepend a <p /> before included Topic
| Status: |
Answered |
TWiki version: |
4.2.2 |
Perl version: |
|
| Category: |
CategoryRendering |
Server OS: |
|
Last update: |
15 years 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 engaging 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
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.