[xwiki-users] Fw : Re: riddle: howto insert a simple span with xwiki syntax?
--- En date de : Jeu 20.10.16, Vincent Massola écrit : > De: Vincent Massol > Objet: Re: [xwiki-users] riddle: howto insert a simple span with xwiki syntax? > À: "Pascal BASTIEN" > Cc: "XWiki Users" > Date: Jeudi 20 octobre 2016, 10h35 > > > On > 20 Oct 2016, at 10:32, Pascal BASTIEN > wrote: > > > > Ok I will > send a PR. > > (I didn't knew doc was > modified through git though) > > > > IMO it is better here, no?: > > http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HParameters > > The example there is > correct. Yes it is correct, but what I want to add in syntax guide (if you agree) is these 2 way: - to close style with (%%) - (((…))) construct generates a DIV > > You need to close > only for span, ie only in inline content. > > Thanks > -Vincent > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Fw : Re: riddle: howto insert a simple span with xwiki syntax?
> > > > (% > class="plainmessage publish-message" %)% > class="glyphicon glyphicon-globe" %)$message))) > > First this is not fully > correct. You need to close the span with (%%). ha! It's like manage to scratch my back! so pleasurable! I need to add that here: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax > > > class="plainmessage publish-message"> > > > > class="glyphicon glyphicon-globe">This article > was published on 17/10/2016 16:47:06 > > > > > > > > > > => span inserted BUT I don't want end of span at the > end of the $message > > Normally you should have tried this: > > (% class="plainmessage > publish-message" %)% class="glyphicon > glyphicon-globe" %)(%%)$message))) > > But it won’t work because the span is > empty. > > So you have 2 > options: > - option 1: you insert some > character in the space like a space (you’ll get > in the output though) yes I confirm this. I have in html output) with (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %) (%%)$message))) > - option 2: you use > the html macro. > > It seems > from your need that you’re trying to output some specific > custom HTML so best is to use the html macro for that. > You’ll have better control with it. yes but I "improved" blog macro: I will commit it this week i think ty ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Fw : Re: riddle: howto insert a simple span with xwiki syntax?
Ok thxs but my problem is that I can not insert a anything in front of $message :-/ There are inserted I wonder why when it is a div (a bug?) or is at the wrong place. I didn't manage to have this simple result: This article was published on 17/10/2016 16:47:06 (% class="plainmessage publish-message" %)% class="glyphicon glyphicon-globe" %)$message))) This article was published on 17/10/2016 16:47:06 => span inserted BUT I don't want end of span at the end of the $message (% class="glyphicon glyphicon-globe" %) (% class="plainmessage publish-message" %)((($message))) This article was published on 20/10/2016 08:18:06 => span inserted BUT I don't want between span and div . publish-message ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users