import { patternInScope } from "../util/pattern-in-scope.js";
function hardBreak(t, n, r, i) {
	let a = -1;
	for (; ++a < r.unsafe.length;) if (r.unsafe[a].character === "\n" && patternInScope(r.stack, r.unsafe[a])) return /[ \t]/.test(i.before) ? "" : " ";
	return "\\\n";
}
export { hardBreak };
