Indent size not respected for one file
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 18
- Joined: Wed May 07, 2008 1:25 pm
Indent size not respected for one file
Hi,
I have several XML files (they are all DITA maps) that are open in Text mode. Oxygen version: <oXygen/> XML Editor 18.0, build 2016081012
Indent size is set to 4 in the Preferences menu (Editor | Format). Indentation works correctly, i.e. uses 4 spaces to indent, for all of these files but one.
In that one file, the tags are only indented by one space. This applies to all of the indenting functions I tried: Ctrl-Shift-P, Ctrl-I, Ctrl-Shift-I.
I can't recognize any difference in that file. Just like all the other files, it starts with these two lines (after XML declaration and DOCTYPE declaration):
When cursor is at the beginning of the <topicmeta> line, calling any of the above indenting functions insert a single space only. (Same for each indent step in the whole file.)
What can I do to apply indent steps of 4 spaces to this file, too?
Best,
Yves
I have several XML files (they are all DITA maps) that are open in Text mode. Oxygen version: <oXygen/> XML Editor 18.0, build 2016081012
Indent size is set to 4 in the Preferences menu (Editor | Format). Indentation works correctly, i.e. uses 4 spaces to indent, for all of these files but one.
In that one file, the tags are only indented by one space. This applies to all of the indenting functions I tried: Ctrl-Shift-P, Ctrl-I, Ctrl-Shift-I.
I can't recognize any difference in that file. Just like all the other files, it starts with these two lines (after XML declaration and DOCTYPE declaration):
Code: Select all
<map type="bla">
<topicmeta>
What can I do to apply indent steps of 4 spaces to this file, too?
Best,
Yves
-
- Posts: 9470
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Indent size not respected for one file
Hi Yves,
In the Oxygen Preferences->Editor / Format page there is a Detect indent on open checkbox. By default it is checked, meaning that Oxygen will try to use for formatting the indent that it detected when the XML was loaded. So you should uncheck it if you want a fixed indent to be used in any opened XML document.
Regards,
Radu
In the Oxygen Preferences->Editor / Format page there is a Detect indent on open checkbox. By default it is checked, meaning that Oxygen will try to use for formatting the indent that it detected when the XML was loaded. So you should uncheck it if you want a fixed indent to be used in any opened XML document.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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