From 94d02a6efa29ce24ddf8ebbccac29d5acabbd84f Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 31 Oct 2017 11:33:55 +0300 Subject: FB2 writer: make bullet lists consistent with ordered lists Previously bullet lists interacted in odd way with ordered lists. For example, bullet lists nested in ordered list had incorrect indentation. Besides that, indentation with spaces is not rendered by FBReader and fbless. To avoid this problem, bullet lists are indented by appending bullets to marker just the same way it is done for ordered lists. --- test/writer.fb2 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/writer.fb2 b/test/writer.fb2 index 8a4986508..3b8ceef8a 100644 --- a/test/writer.fb2 +++ b/test/writer.fb2 @@ -261,23 +261,23 @@

Nested

• Tab

-

◦ Tab

-

* Tab

+

• • Tab

+

• • • Tab

Here’s another:

1. First

2. Second:

-

   • Fee

-

   • Fie

-

   • Foe

+

2. • Fee

+

2. • Fie

+

2. • Foe

3. Third

Same thing but with paragraphs:

1. First

2. Second:

-

   • Fee

-

   • Fie

-

   • Foe

+

2. • Fee

+

2. • Fie

+

2. • Foe

3. Third

@@ -289,9 +289,9 @@

• this is a list item indented with spaces

-

◦ this is an example list item indented with tabs

+

• • this is an example list item indented with tabs

-

◦ this is an example list item indented with spaces

+

• • this is an example list item indented with spaces

-- cgit v1.2.3