Rocky_Mountain_Vending/.pnpm-store/v10/files/1d/aeaa2c779deebac3ec92807a2670ec8c8279884258680db2db03608c5343b89fc89c1e61a725edb937070bcaaee3ce8c3035e563815281ad02167fd864bc83
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

27 lines
654 B
Text

export function simpleFormatXml(xml) {
let b = "";
let indentation = 0;
for (let i = 0; i < xml.length; ++i) {
const c = xml[i];
if (c === "<") {
if (xml[i + 1] === "/") {
b += "\n" + " ".repeat(indentation - 2) + c;
indentation -= 4;
}
else {
b += c;
}
}
else if (c === ">") {
indentation += 2;
b += c + "\n" + " ".repeat(indentation);
}
else {
b += c;
}
}
return b
.split("\n")
.filter((s) => !!s.trim())
.join("\n");
}