Skip to content

feat: weak_space and weak_line - #11

Draft
QuadnucYard wants to merge 1 commit into
mainfrom
weak-space
Draft

feat: weak_space and weak_line#11
QuadnucYard wants to merge 1 commit into
mainfrom
weak-space

Conversation

@QuadnucYard

Copy link
Copy Markdown
Contributor

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

Comment thread src/render/fit.rs
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
Copy Markdown
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.

1 participant