Alterar configuração de indentação do XML#31
Conversation
Mudou a propriedade `Indent` de `true` para `false` na configuração do `XmlWriterSettings`. Isso resulta em uma saída XML mais compacta, sem indentação.
| XmlWriterSettings settings = new() | ||
| { | ||
| Indent = true, | ||
| Indent = false, |
There was a problem hiding this comment.
Consider adding an inline comment explaining the decision to disable indentation, which can help future maintainers understand the reasoning behind this configuration change.
There was a problem hiding this comment.
A ideia é de reduzir espaço no processo de gerar ficheiro. O ficheiro precisa de ocupar o menos espaço possível.
There was a problem hiding this comment.
Pull Request Overview
Adjust the XML writer settings to produce a more compact output by disabling indentation.
- Set
XmlWriterSettings.Indentfromtruetofalsefor compact XML
Comments suppressed due to low confidence (3)
src/SAF-T.Mozambique/Generators/MozambiqueSaftGenerator.cs:261
- Verify and update any existing tests that assume indented XML output to accommodate the new compact format.
Indent = false,
src/SAF-T.Mozambique/Generators/MozambiqueSaftGenerator.cs:261
- [nitpick] Consider adding a comment explaining why indentation is disabled to clarify the intent for future maintainers.
Indent = false,
src/SAF-T.Mozambique/Generators/MozambiqueSaftGenerator.cs:261
- [nitpick] Disabling indentation may be a breaking change for consumers expecting human-readable XML; ensure downstream consumers can handle compact output or version the change accordingly.
Indent = false,
There was a problem hiding this comment.
Pull Request Overview
This PR updates the XML writer settings to produce a more compact output by disabling indentation.
- Disabled
IndentinXmlWriterSettingsto remove extra whitespace.
Comments suppressed due to low confidence (2)
src/SAF-T.Mozambique/Generators/MozambiqueSaftGenerator.cs:261
- Since the output format changed, add or update unit tests to assert that the generated XML contains no indentation.
Indent = false,
src/SAF-T.Mozambique/Generators/MozambiqueSaftGenerator.cs:261
- [nitpick] Consider adding a comment or updating the method summary to explain that indentation has been disabled for compact XML generation.
Indent = false,
Mudou a propriedade
Indentdetrueparafalsena configuração doXmlWriterSettings. Isso resulta em uma saída XML mais compacta, sem indentação.