Thank you muchest, all is up and running! Thanks as well for the explanation, this helps me getting further into the whole experience. -Wouter On 5/24/11, Sergiu Dumitriu <[email protected]> wrote:
On 05/24/2011 11:22 AM, Wouter de Vos wrote:
Hi all,
I have a problem with the HTML Makro and the implementation of wiki syntax. The HTML Makro works fine, but one part of my text ignores the wiki syntax and I cant seem to find out why. Here is what I did:
{{html wiki="true"}} <div onclick="toggleClass($('Info'), 'hidden')"> (% style="WIDTH: 99%" %) |=Info </div> <div id="Info" class="hidden"> **Info** (% style="MARGIN-RIGHT: 1%" %) textcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextco ntenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontentt extcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcon tenttextcontent </div> {{/html}}
Now the top part works fine in wikisyntax, but the Info Textcontent ignores it, and I dont know why. The font seems to be different to the standard one as well. I tried putting wiki="true" in all different places, even placed the info div in separte html tags, but nothing seems to work. I could ofourse use the style attribute in HTML, but thats not the point of wiki="true" I think. I might overlook the obvious but I would appreciate it alot if someone could point me out my mistake.
You're trying to apply a block-level parameter (since there's a newline after (% style %) ). Unfortunately, the html macro follows the HTML whitespace gobbling rules, meaning that all consecutive whitespaces are replaced by a single space character, thus the textcontent is not a block level text.
If you want to make that a block, try to wrap it with ((( ))), like:
<div id="Info" class="hidden"> **Info**
(% style="margin-left: 1%" %)((( textcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextco ntenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontentt extcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcontenttextcon tenttextcontent ))) </div>
Also note the blank line between **info** and (% style %), which is needed. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users