From 5378b7c5bdf032938372883db0d31a5d44b82c57 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 5 Jul 2016 11:49:45 +0200 Subject: Org writer: improve Div handling Div blocks handling is changed to make the output look more like idiomatic org mode: - Div-wrapped content is output as-is if the div's attribute is the null attribute. - Div containers with an id but neither classes nor key-value pairs are unwrapped and the id is added as an anchor. - Divs with classes associated with greater block elements are wrapped in a `#+BEGIN`...`#+END` block. - The old behavior for Divs with more complex attributes is kept. --- tests/writer.org | 72 -------------------------------------------------------- 1 file changed, 72 deletions(-) (limited to 'tests') diff --git a/tests/writer.org b/tests/writer.org index 4c7f363a6..cf6305ec9 100644 --- a/tests/writer.org +++ b/tests/writer.org @@ -405,54 +405,14 @@ Blank line after term, indented marker, alternate markers: Simple block on one line: -#+BEGIN_HTML -
-#+END_HTML - foo -#+BEGIN_HTML -
-#+END_HTML - And nested without indentation: -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - foo -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - bar -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - Interpreted markdown in a table: #+BEGIN_HTML @@ -497,16 +457,8 @@ And this is *strong* Here's a simple block: -#+BEGIN_HTML -
-#+END_HTML - foo -#+BEGIN_HTML -
-#+END_HTML - This should be a code block, though: #+BEGIN_EXAMPLE @@ -523,32 +475,8 @@ As should this: Now, nested: -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - foo -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - -#+BEGIN_HTML -
-#+END_HTML - This should just be an HTML comment: #+BEGIN_HTML -- cgit v1.2.3