Sometimes the format and indent button doesn't work

Hi Folks, Sometimes the format and indent button doesn't work. I found a workaround: copy the document you want indented, open a new empty XML tab, paste the document in there. Now the document will be formatted. Below are two screenshots. The first shows a document that is unformatted and the Oxygen format and indent button refuses to format it. The second screenshot shows the document formatted after copying and pasting. Oxygen folks, can you fix this problem please? /Roger [cid:image001.png@01D89DA1.CBD04870] [cid:image002.png@01D89DA1.CBD04870]

I can't tell where your cursor is at. Sometimes for me, oxygen button seems to get into a format element mode instead of document. Try placing the cursor on the root element and try again. This is definitely an issue in the eclipse version.Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: Roger L Costello <costello@mitre.org> Date: 8/8/22 6:13 AM (GMT-08:00) To: oxygen-user@oxygenxml.com Subject: [oXygen-user] Sometimes the format and indent button doesn't work Hi Folks, Sometimes the format and indent button doesn’t work. I found a workaround: copy the document you want indented, open a new empty XML tab, paste the document in there. Now the document will be formatted. Below are two screenshots. The first shows a document that is unformatted and the Oxygen format and indent button refuses to format it. The second screenshot shows the document formatted after copying and pasting. Oxygen folks, can you fix this problem please? /Roger

Hello Roger, Oxygen automatically detects the indent of the document on open. This is because documents can be formatted differently and we try to keep the indent of the documents. In case you want to force a specific format for the documents you can disable the "Detect indent on open" option. For this you need to open the Preferences dialog box (Options > Preferences) and go to Editor > Format options page. You can find more details about this option in our user manual: https://www.oxygenxml.com/doc/versions/24.1/ug-editor/topics/preferences-edi... Best Regards, Octavian On 7/22/2022 3:05 PM, Roger L Costello wrote:
Hi Folks,
Sometimes the format and indent button doesn’t work. I found a workaround: copy the document you want indented, open a new empty XML tab, paste the document in there. Now the document will be formatted.
Below are two screenshots. The first shows a document that is unformatted and the Oxygen format and indent button refuses to format it. The second screenshot shows the document formatted after copying and pasting.
Oxygen folks, can you fix this problem please? /Roger
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Octavian Nadolu <oXygen/> XML Editor http://www.oxygenxml.com
participants (3)
-
dvint
-
Oxygen XML Editor Support (Octavian Nadolu)
-
Roger L Costello