import { patternInScope } from "./lib-util-pattern-in-scope.js";
function hardBreak(_, _1, state, info) {
  let index = -1;
  while (++index < state.unsafe.length) {
    if (state.unsafe[index].character === "\n" && patternInScope(state.stack, state.unsafe[index])) {
      return /[ \t]/.test(info.before) ? "" : " ";
    }
  }
  return "\\\n";
}
export {
  hardBreak
};
//# sourceMappingURL=lib-handle-break.js.map
