// add a line break

import { CreateDocx } from "../../../build";
import * as fs from "fs";

const docx = new CreateDocx();

docx.addText("New content.");

docx.addBreak();
// the break is added in a new paragraph, so two breaks are done (paragraph and line).
// An empty text can be added to generate a single break
// docx.addText("");

docx.addText("Other content.");

docx.save().then(contents => {
    fs.writeFileSync("addBreak_1.docx", Buffer.from(contents));
});
