Write tabs instead of spaces in XML lazarus / 21-General ---------------------------------------------------------------------- artem101 · 2023-08-15 17:48 Hello all. By default WriteXMLFile function makes indents using two spaces. I prefer to use tabs instead. I didn't found any TXMLWriterFlag for this option. How can I do this? Thanks. ---------------------------------------------------------------------- jamie · 2023-08-15 22:53 You do realize a TAB is 8 spaces by standard and you want to replace both of them. ? ---------------------------------------------------------------------- Leledumbo · 2023-08-16 10:26 WriteXMLFile is a convenience function, is uses default settings for all. Do it with your own created T(XML|DOM)Writer instance instead, setting UseTabs to true before doing any writes. ---------------------------------------------------------------------- Thaddy · 2023-08-16 16:55 Using tabs is not a good idea, unless on a typewriter. ---------------------------------------------------------------------- artem101 · 2023-08-16 17:55 Quote from: jamie on August 16, 2023, 12:53:08 amYou do realize a TAB is 8 spaces by standard Tabs and spaces not the same characters! Quote from: Thaddy on August 16, 2023, 06:55:45 pmUsing tabs is not a good idea Why do you think so?