Indent size not respected for one file

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
yvesforkl
Posts: 10

Indent size not respected for one file

Mon Jul 24, 2017 4:58 pm

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
Radu
Posts: 5224

Re: Indent size not respected for one file

Tue Jul 25, 2017 8:10 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
yvesforkl
Posts: 10

Re: Indent size not respected for one file

Tue Jul 25, 2017 2:47 pm

Hi Radu,

thank you very much!

That did the trick.

Best,

Yves

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 1 guest