Page 1 of 1

Indent size not respected for one file

Posted: Mon Jul 24, 2017 4:58 pm
by yvesforkl
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):

Code: Select all

<map type="bla">
<topicmeta>
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

Re: Indent size not respected for one file

Posted: Tue Jul 25, 2017 8:10 am
by Radu
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

Re: Indent size not respected for one file

Posted: Tue Jul 25, 2017 2:47 pm
by yvesforkl
Hi Radu,

thank you very much!

That did the trick.

Best,

Yves