This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
Title Problem with inserting commented out sections
Date17-Nov-2006 19:10:23 EET
VersionJSPWiki v2.4.71
SubmitterGeorge Kendall
Bug criticalityLightBug
Browser versionFirefox 1.5
Bug statusOpenBug
PageProvider used
Servlet Container
Operating SystemLinux 2.6.18
URLhttp://www.jspwiki.org/wiki/JSPIncludeDisplayNoneSection
Java version

Why would I want to comment out section dividers?#

In my wiki, I am using certain pages to hold information about news stories: news story title, short summary, full text. These sections can then be referenced by other pages. For example, the home page includes summaries of and links to three news stories. The simplest way to hold this information seemed to be to hold the information in separate sections, with one wiki page per story. This would work fine, if that page was subdivided by horizontal rules, but my internal client doesn't want this. I thought an easy solution would be to comment out the sections, but that results in the problem described below.

Problem with inserting commented out sections#

If the section marker (----) is commented out using the %%(display:none)%% technique, then the closing </div> is lost when the preceding section is included. This currently seems only to be a problem if the InsertPage contains style information. It would be nice if, either a section included till the end of the line, or there were another way to comment out section markers without this side-effect.

(See JSPIncludeDisplayNoneSection for details)

One possible solution#

In the template css file (eg jspwiki.css), add the following line:

hr { display:none; }
This disables all horizontal rules. It will probably do what I want, but obviously isn't ideal, as it prevents the use of horizontal rules in all situations.

This is rather strange, indeed.

-- JanneJalkanen

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 21-Nov-2006 23:55 by JanneJalkanen.