Failure to Indent and Format Properly
Oxygen general issues.
Failure to Indent and Format Properly
I recently went from version 10 to version 12 and I'm having difficulty formatting correctly.
If I hit the format button in .xml docs, it works fine. However, when I use this same feature in .html docs, it fail to format everything. It stops formatting after my first div. These same docs worked fine in version 10 but not 12.
If I hit the format button in .xml docs, it works fine. However, when I use this same feature in .html docs, it fail to format everything. It stops formatting after my first div. These same docs worked fine in version 10 but not 12.
Re: Failure to Indent and Format Properly
Hello,
Starting with version 12 Oxygen introduced a fixed formatting profile for HTML. e.g. a space is automatically added before the slash in empty elements: <br />
Note that this profile should not affect the formatter functionality.
If possible, please send us a sample HTML file where the Oxygen Format and Indent fails to work as expected. You can send it via email to: support AT oxygenxml DOT com
Regards,
Adrian
Starting with version 12 Oxygen introduced a fixed formatting profile for HTML. e.g. a space is automatically added before the slash in empty elements: <br />
Note that this profile should not affect the formatter functionality.
If possible, please send us a sample HTML file where the Oxygen Format and Indent fails to work as expected. You can send it via email to: support AT oxygenxml DOT com
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: Failure to Indent and Format Properly
Hi,
In case anyone else wonders about this, I've compared the formatting in v10 with the one in v12. The formatting in v10 was generic (not aware of the schema or the specific type of XML document) and was considered intrusive because it inserted indents between tags that previously did not have any space and this could result into a significant change for the XML. This behavior was changed in v12 with the introduction of the schema aware format and indent.
If you'd rather use the old type of XML formatting from version 10, you can disable the option "Schema aware format and indent" from Options > Preferences, Editor > Format > XML. This will affect all types of XML files, not just HTML.
The file(s) should be reopened for the new settings to become active.
Regards,
Adrian
In case anyone else wonders about this, I've compared the formatting in v10 with the one in v12. The formatting in v10 was generic (not aware of the schema or the specific type of XML document) and was considered intrusive because it inserted indents between tags that previously did not have any space and this could result into a significant change for the XML. This behavior was changed in v12 with the introduction of the schema aware format and indent.
If you'd rather use the old type of XML formatting from version 10, you can disable the option "Schema aware format and indent" from Options > Preferences, Editor > Format > XML. This will affect all types of XML files, not just HTML.
The file(s) should be reopened for the new settings to become active.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service