feat(elements): multiple lines comment and fixed width area
This commit is contained in:
parent
74a19c2ff7
commit
a288a6d554
6 changed files with 72 additions and 45 deletions
|
|
@ -98,7 +98,12 @@ pub trait HtmlHandler<W: Write> {
|
|||
Ok(())
|
||||
}
|
||||
fn handle_fixed_width(&mut self, w: &mut W, cont: &str) -> Result<()> {
|
||||
write!(w, "<pre>{}</pre>", Escape(cont))
|
||||
for line in cont.lines() {
|
||||
// remove leading colon
|
||||
write!(w, "<pre>{}</pre>", Escape(&line[1..]))?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
fn handle_table_start(&mut self, w: &mut W) -> Result<()> {
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue