From fc28e3b5145a88dc8372403e942531b40f7c469a Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 11 Aug 2023 01:37:04 -0400 Subject: [PATCH] Add a test for trailing blank lines after paragraphs. The behavior in emacs does not match the description in the org-mode documentation. I have sent an email to the org-mode mailing list and I am waiting their response so I can adjust (or not adjust) my parser accordingly. --- build.rs | 1 + .../blank_lines_after_paragraphs.org | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 org_mode_samples/trailing_whitespace/blank_lines_after_paragraphs.org diff --git a/build.rs b/build.rs index 75f7b6b..4c6613c 100644 --- a/build.rs +++ b/build.rs @@ -75,6 +75,7 @@ fn is_expect_fail(name: &str) -> Option<&str> { "element_container_priority_footnote_definition_dynamic_block" => Some("Apparently broken begin lines become their own paragraph."), "paragraphs_paragraph_with_backslash_line_breaks" => Some("The text we're getting out of the parse tree is already processed to remove line breaks, so our comparison needs to take that into account."), "export_snippet_paragraph_break_precedent" => Some("Emacs 28 has broken behavior so the tests in the CI fail."), + "trailing_whitespace_blank_lines_after_paragraphs" => Some("Waiting on mailing list response about ownership of the trailing blank lines."), _ => None, } } diff --git a/org_mode_samples/trailing_whitespace/blank_lines_after_paragraphs.org b/org_mode_samples/trailing_whitespace/blank_lines_after_paragraphs.org new file mode 100644 index 0000000..9a355f4 --- /dev/null +++ b/org_mode_samples/trailing_whitespace/blank_lines_after_paragraphs.org @@ -0,0 +1,18 @@ +foo bar. + + + + +* Lorem +baz + + + + +* Ipsum +alpha + + + + +beta