[oXygen-user] oXygen-8.2 XHTML Format and Indent Errors

Robert Koberg
Mon May 21 04:18:00 CDT 2007


Hi,

I am still getting a problem on paste (JavaScript) in an script element
that has has been added to the preserve space list in the preferences
(well, it was there by default). 

...just played around with the preferences a bit... It seems you need to
uncheck 'Indent (when typing) in preserve space elements' to keep the
original formatting on paste. You can still check 'Indent on paste - for
line...' so the XML gets pretty printed. Perhaps this worked all
along :). Maybe just remove the '(when typing)' in the option text to
make it clearer ??

But if both the above options are checked in the
Options/Preferences/Editor/Format/XML dialog then pasting something
like:

if (true) {
  alert('boo');
}
into a script element becomes:
<script>
  if (true) {
  alert('boo');
  }
</script>

best,
-Rob



On Mon, 2007-05-21 at 10:39 +0300, Sorin Ristache wrote:
> Hello,
> 
> Now there is a new build of oXygen 8.2 available on the Download page 
> which fixes the format and indent problems:
> 
> http://www.oxygenxml.com/download.html
> 
> 
> Regards,
> Sorin
> 
> 
> George Cristian Bina wrote:
> > Dear Ray,
> > 
> > Thanks! There are two problems here
> > 1. The format and indent of CSS does not handle correctly the example 
> > you posted. You can enclose the url argument in quotes as a workaround, 
> > for instance:
> > @import url("http://www.foo.com/foo_files/styles/foo-styles.css");
> > 2. The format and indent does not take into account xml:space for script 
> > and style elements.
> > 
> > We are working on fixing these as I write and we will make the fix 
> > available in a new 8.2 build.
> > 
> > Best Regards,
> > George
> > ---------------------------------------------------------------------
> > George Cristian Bina - http://aboutxml.blogspot.com/
> > <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> > http://www.oxygenxml.com
> > 
> > 
> > Miller, Ray (Centech) wrote:
> >> Upgraded from oXygen-8.1 to v8.2; note the following XHTML code block:
> >>
> >>  
> >>
> >> <style type="text/css" media="screen,print">
> >>
> >>    @import url(http://www.foo.com/foo_files/styles/foo-styles.css);
> >>
> >>    @import url(http://www.foo.com/foo_files/styles/foo-user-styles.css);
> >>
> >>    @import url(http://www.foo.com/foo_files/styles/top-menu-styles.css);
> >>
> >>    @import
> >> url(http://www.foo.com/foo_files/styles/side-menu-styles.css);
> >> </style>
> >>
> >>  
> >>
> >> When Format and Indent is applied, the following results:
> >>
> >>  
> >>
> >> <style type="text/css" media="screen,print">
> >>
> >>    //www.foo.com/foo_files/styles/foo-styles.css);@import url(http:
> >>
> >>    //www.foo.com/foo_files/styles/foo-user-styles.css);@import url(http:
> >>
> >>    //www.foo.com/foo_files/styles/top-menu-styles.css);@import url(http:
> >>
> >>    //www.foo.com/foo_files/styles/side-menu-styles.css);@import
> >> url(http:</style>
> >>
> >>  
> >>
> >> style is included Editor / Format / XML / Preserve Space Elements
> >>
> >>  
> >>
> >> This did not occur in v8.1
> >>
> >>  
> >>
> >> Please advise.
> >>
> >>  
> >>
> >> Ray
> 
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user




More information about the oXygen-user mailing list