Hi Ken, Ken Williams <ken.willi...@windlogics.com> writes:
> I have the following document: > > ---------------------- > #+TITLE: Test Doc > #+AUTHOR: Ken Williams > > * Top header > > Top paragraph. > > #+begin_src R > library(testthat) > > test_that("failures", { > expect_that(6, equals(9)) > expect_that(6, equals(9)) > expect_that(6, equals(9)) > expect_that(6, equals(9)) > expect_that(6, equals(9)) > }) > #+end_src > > #+results: > #+begin_example > Error: Test failure in 'failures' > * 6 not equal to 9 > Mean relative difference: 0.3333333 > * 6 not equal to 9 > Mean relative difference: 0.3333333 > * 6 not equal to 9 > Mean relative difference: 0.3333333 > * 6 not equal to 9 > Mean relative difference: 0.3333333 > * 6 not equal to 9 > Mean relative difference: 0.3333333 > #+end_example > ---------------------- > > > When I put the point on the top headline and hit <tab>, it doesn't fold the > complete section, it only folds up to the line "* 6 not equal to 9". So > something thinks that line is a header, even though it's within a > "#+begin_example" section. Hit C-c ' twice and you'll have commas inserted before the lines starting with an asterisk. See this footnote in the "Literal example" section of the manual: ,---- | (4) Upon exit, lines starting with `*' or `#' will get a comma | prepended, to keep them from being interpreted by Org as outline nodes | or special comments. These commas will be stripped for editing with | `C-c '', and also for export. `---- HTH, -- Bastien