[Rest2web-develop] Page description and <p> ... </p>
Brought to you by:
mjfoord
From: V. <gae...@no...> - 2006-05-02 06:53:46
|
Hi, Am I wrong or is page['page-description'] a html paragraph (ie enclosed in <p> ... </p>). Now say I want to use section_contents to list the sub-sections in such a way : <ul> <li> <a href=3D"link/to/subsection">crumb</a> description <li> <a href=3D"link/to/subsection">crumb</a> description ... </ul> I have to cut out the <p> and </p> of the description. Now I just realised that I didn't exactly need the re module to do this, so it is not as costly as I thought, (I can use description[3:-4], which is ugly but should work). I guess there is a good reason for having the paragraph marker in the description, and not adding them by hand: the description can probably be multi-paragraph, eventhough this is not a feature that I use. So I have two questions: * Is it true that the description can be mutli-paragraph ? If not I suggest to remove the enclosing <p> ... </p> from the description. This will break web-pages, I know, but I think the gain in flexibility is worth the while. And desides rest2web is still a young product so it is the time to break and rebuild things. * Can I rely on the paragraph marker being present on every single paragraph description, and use my workaround without fearing cutting something else ? -- Ga=EBl |