This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199454 - formatting breaks xsl
Summary: formatting breaks xsl
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: XSL (show other bugs)
Version: 7.0.1
Hardware: PC Other
: P2 normal with 2 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 10:18 UTC by anthonyt
Modified: 2011-09-23 08:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anthonyt 2011-06-16 10:18:50 UTC
This excerpt:

*<xsl:value-of select="MatricFGS"/>*

is formatted to:

*
<xsl:value-of select="MatricFGS"/>*

(notice the linebreak)

... which is no xml equivalent and breaks the report this is used in (it represents a barcode).
Comment 1 Svata Dedic 2011-09-23 08:35:08 UTC
Sorry, this behaviour probably cannot be fixed; if I change the code to stick the tag with the previous text, then e.g. the following will not reformat nicely:

------%<--------------%<--------
<blah>
  some Content</blah>
------%<--------------%<--------

We may argue what is more common use-case. You can hint the NB formatting engine by including xml:space="preserve" on the enclosing element, then no formatting will be done within that scope.