pnkfelix / tango

Markdown-based Literate programming in Rust, integrated with Cargo.
Apache License 2.0
171 stars 12 forks source link

Round-tripping rust then md-line of a tab (not empty new line) fails #1

Closed pnkfelix closed 9 years ago

pnkfelix commented 9 years ago

This sequence describes the series of transforms I expect for the "round-trip":

pub const PRODIGAL5_MD: &'static str = r#"# Hello World
```rust
let code_fragment;

This looks like it has a nice para break before its starts, but note the tab "#;

pub const HARVEST5_RS: &'static str = r#"//@ # Hello World let code_fragment; //@
//@ This looks like it has a nice para break before its starts, //@ but note the tab "#;

pub const RETURN5_MD: &'static str = r#"# Hello World

let code_fragment;

This looks like it has a nice para break before its starts, but note the tab "#;


The problem is that the third part ends up emitting a supposed md section that goes like this insead:
let code_fragment;

//@ This looks like it has a nice para break before its starts, but note the tab