We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Codev Web>WebcolorInclude (21 Jan 2000, PeterThoeny)
Tags:
create new tag
, view all tags
possible a bug in in %INCLUDE:

if i edit webcolor.incl (contains only #xxxxxx) with vi the result is a 8 byte file. this file will result in non working colors in wikiwebtable.inc.

the result is like this:

&gt TR BGCOLOR=#xxxxxx &lt

works fine if i create wikiwebcolor.inc the following way

cat > wikiwebcolor.inc

#xxxxxx^D

is a 7 byte file ...

-- ThomasVogel - 20 Jan 2000


Thomas, this is not a bug in include, it is a limitation of HTML. HTML apparently does not allow to have a tag spread over more then one line. Lets look at the template of our case:

<TD BGCOLOR="%INCLUDE:"webcolor.inc"%" rowspan="2" valign="top" width="1%">

This line is split in two if there is a new line in file webcolor.inc:

<TD BGCOLOR="#112233
" rowspan="2" valign="top" width="1%">

This is not correct HTML. That means, you must not have a new line in file webcolor.inc.

-- PeterThoeny - 20 Jan 2000

TopicClassification:
BugResolved
Topic revision: r2 - 21 Jan 2000 - 00:26:26 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback