You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by ma...@schrick-design.de on 2009/03/23 12:34:54 UTC

Formatting on save in OneForm/SourceEditor (Lenya 2.0.2/3)

Hello List,

saving in Oneform/Sourceeditor:
is there a (easy) way to keep the formatting of the document exactly as-is?

The problem:
I created a resourcetype XSP-page to use a XSP-page as content.
For editing these documents I'd like to use Oneform.
Basically all works as expected but in some cases it leads to errors when the code is reformatted by the editor.

Example: db-usage with esql-logicsheet
<esql:pool><input:get-attribute module="properties" as="string" name="mydatasource" default=""/></esql:pool>
is reformatted to:
<esql:pool>
<input:get-attribute module="properties" as="string" name="mydatasource" default=""/>
</esql:pool>
this doesn't work anymore as the whitespaces are considered to be part of the connection-name.

Thanks,
 Gerd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Formatting on save in OneForm/SourceEditor (Lenya 2.0.2/3)

Posted by Andreas Hartmann <an...@apache.org>.
Hi Gerd,

mail@schrick-design.de schrieb:
> saving in Oneform/Sourceeditor:
> is there a (easy) way to keep the formatting of the document exactly as-is?
> 
> The problem:
> I created a resourcetype XSP-page to use a XSP-page as content.
> For editing these documents I'd like to use Oneform.
> Basically all works as expected but in some cases it leads to errors when the code is reformatted by the editor.
> 
> Example: db-usage with esql-logicsheet
> <esql:pool><input:get-attribute module="properties" as="string" name="mydatasource" default=""/></esql:pool>
> is reformatted to:
> <esql:pool>
> <input:get-attribute module="properties" as="string" name="mydatasource" default=""/>
> </esql:pool>
> this doesn't work anymore as the whitespaces are considered to be part of the connection-name.

I can confirm the problem. Would you mind filing a bug report? TIA!

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org