Handle whitespace after parameters in src blocks.
This commit is contained in:
parent
da2d7535e8
commit
50a3631b79
@ -0,0 +1,7 @@
|
||||
#+begin_src python :exports results
|
||||
print("foo")
|
||||
#+end_src
|
||||
|
||||
#+begin_src python -n :exports results
|
||||
print("foo")
|
||||
#+end_src
|
@ -390,7 +390,7 @@ enum SwitchState {
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
fn src_parameters<'s>(input: OrgSource<'s>) -> Res<OrgSource<'s>, OrgSource<'s>> {
|
||||
recognize(is_not("\r\n"))(input)
|
||||
recognize(many_till(anychar, peek(tuple((space0, line_ending)))))(input)
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "tracing", tracing::instrument(ret, level = "debug"))]
|
||||
|
Loading…
Reference in New Issue
Block a user