xml:space="preserve" and IDE space preserve

Hi, Let's say I have this is one page: <div> <script xml:space="preserve"> if (true) { alert("boo"); } </script> </div> If I paste that with the xml:space *or* with the element included IDE's Options Preference for 'Preserve Space elements (XPath)' the result of the past is: <div> <script xml:space="preserve"> if (true) { alert("boo"); } </script> </div> Is this a bug? best, -Rob

Hi Robert, The behavior is configurable. You need to disable the "Indent (when typing) in preserve space elements" option from Options->Preferences -- Editor -- Format -- XML, Indent group. Best Regards, George --------------------------------------------------------------------- George Cristian Bina - http://aboutxml.blogspot.com/ <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Robert Koberg wrote:
Hi,
Let's say I have this is one page:
<div> <script xml:space="preserve"> if (true) { alert("boo"); } </script> </div>
If I paste that with the xml:space *or* with the element included IDE's Options Preference for 'Preserve Space elements (XPath)' the result of the past is:
<div> <script xml:space="preserve"> if (true) { alert("boo"); } </script> </div>
Is this a bug?
best, -Rob
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
George Cristian Bina
-
Robert Koberg