Skip to content

Conversation

@QuadnucYard
Copy link
Contributor

This is an experimental implementation, which breaks the semantics of hard line, but useful for now.

Comment on lines 128 to +140
if let Some(next) = self.cmds.pop() {
write_newline(next.indent, out)?;
self.pos = next.indent;
self.write_newline(out)?;
// write_spaces(next.indent, out)?;
// self.pos = next.indent;
self.pending_indent = Some(next.indent);
cmd = next;
} else {
self.write_newline(out)?;
// write_spaces(indent, out)?;
// self.pos = indent;
self.pending_indent = Some(indent);
break;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is the break. we need to work out new api for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants