Are SVG files to be formatted in a certain way? Like do indentation and line breaks etc. matter to SVG files?
No, SVG files are not sensitive to indentation or line breaks. They are sensitive to certain spaces (such as the space between
<path d...). You can run an SVG through a minifier like SVGOMG and see for yourself that indentation and line breaks are removed.