Add a blank_line()
method to Builder
#13
|
@ -18,6 +18,17 @@ impl Builder {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Append a single blank line to the document
|
||||||
|
///
|
||||||
|
/// This is equivilent to calling [`text()`] with an empty string, or pushing a blank
|
||||||
|
/// [`Node`]
|
||||||
|
///
|
||||||
|
/// [`text()`]: Self::text()
|
||||||
|
pub fn blank_line(mut self) -> Self {
|
||||||
|
self.nodes.push(Node::blank());
|
||||||
|
self
|
||||||
|
}
|
||||||
|
|
||||||
pub fn link<T: Into<String>>(mut self, to: T, name: Option<String>) -> Builder {
|
pub fn link<T: Into<String>>(mut self, to: T, name: Option<String>) -> Builder {
|
||||||
self.nodes.push(Node::Link {
|
self.nodes.push(Node::Link {
|
||||||
to: to.into(),
|
to: to.into(),
|
||||||
|
|
Loading…
Reference in New Issue