[xwiki-devs] Fwd: [VOTE] What to do with RawBlock in plain text renderer ?
(resending since I got a failure from xwiki's mail content filter ) ---------- Forwarded message ---------- From: Vincent Massol <vincent@massol.net> Date: Sun, Jul 26, 2009 at 12:08 PM Subject: Re: [xwiki-devs] [VOTE] What to do with RawBlock in plain text renderer ? To: XWiki Developers <devs@xwiki.org> On Jul 26, 2009, at 11:52 AM, Thomas Mortagne wrote:
Hi devs,
We need to decide what to do with html macro content (or any other RawBlock content) in plain text renderer.
For me the rule of plain text renderer should be to print anything we are able to print which mean printing any pure text content and skip styles for which obviously we don't have syntax. RawBlock content is pure text so we should print it.
Note that first version of plain text renderer was printing html content and it was lost when introducing RawBlock.
Here is my +1 for printing RawBlock content in plain text renderer.
-1 for now (I can be convinced to change it): RawBlock is very special and should only be interpreted by renderers which understand the raw syntax. The plain text renderer shouldn't understand any syntax IMO. I'd like to see a real use case before changing my -1 to a +1. Right now if a page has for example a form to create a new type of page and this page is output in plain text, I will not want to see the HTML printed as content. It doesn't make sense to me. Thanks -Vincent
Hi, Vincent Massol wrote:
-1 for now (I can be convinced to change it): RawBlock is very special and should only be interpreted by renderers which understand the raw syntax. The plain text renderer shouldn't understand any syntax IMO.
I'd like to see a real use case before changing my -1 to a +1.
Please, excuse me if this is a stupid example, doesn't fit with what you are chatting about, or it will be solved by the parameters to be introduced with 2.0m2, but I've not been able yet to find an answer to this issue. As posted in some elder message more than a year ago, I would like to use XWiki to collaborate in the creation of simple, so far, pieces of R code (http://www.r-project.org/). Here a rather simple example... http://playground.myxwiki.org/xwiki/bin/view/R/RGraphicSample04XWiki2 ?xpage=plain print it nicely, but it includes HTML code that thrown an exception when received by R. While working with XWiki 1.0 Syntax, just one line in the code generates HTML code... http://xepecnet.environmentalchange.net/xwiki/bin/view/ICT/RGraphicSample04?... If I scape [ and ] in toPlot<-toPlot[order(toPlot$medio),], xpage=plain generates other HTML code, so this is not a solution. If I copy and paste the content of the view window... http://playground.myxwiki.org/xwiki/bin/view/R/RGraphicSample04XWiki2?viewer... ... in the R application prompt, it do the trick. But I am not able to find how to pass to the concerned command -source()- the right contents. I do hope this is not only noise! Thanks. Best, Ricardo -- Ricardo RodrÃguez Your EPEC Network ICT Team
participants (2)
-
[Ricardo Rodriguez] Your EPEC Network ICT Team -
Vincent Massol