From c4f6e6cb57e4fdda9ad59ff7220988810583ec60 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 21 Dec 2021 22:53:22 -0800 Subject: HTML writer: make line breaks more consistent. - With `--wrap=none`, we now output line breaks between block-level elements. Previously they were omitted entirely, so the whole document was on one line, unless there were literal line breaks in pre sections. This makes the HTML writer's behavior more consistent with that of other writers. - Put newline after `
`. - Put newlines after block-level elements in footnote section. --- test/writer.html5 | 66 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 22 deletions(-) (limited to 'test/writer.html5') diff --git a/test/writer.html5 b/test/writer.html5 index cdfcf042f..d8e89b3e2 100644 --- a/test/writer.html5 +++ b/test/writer.html5 @@ -379,47 +379,58 @@ back.

Tight using spaces:

apple
-
red fruit +
+red fruit
orange
-
orange fruit +
+orange fruit
banana
-
yellow fruit +
+yellow fruit

Tight using tabs:

apple
-
red fruit +
+red fruit
orange
-
orange fruit +
+orange fruit
banana
-
yellow fruit +
+yellow fruit

Loose:

apple
-

red fruit

+
+

red fruit

orange
-

orange fruit

+
+

orange fruit

banana
-

yellow fruit

+
+

yellow fruit

Multiple blocks with italics:

apple
-

red fruit

+
+

red fruit

contains seeds, crisp, pleasant to taste

orange
-

orange fruit

+
+

orange fruit

{ orange code block }

orange block quote

@@ -429,38 +440,49 @@ back.

Multiple definitions, tight:

apple
-
red fruit +
+red fruit
-
computer +
+computer
orange
-
orange fruit +
+orange fruit
-
bank +
+bank

Multiple definitions, loose:

apple
-

red fruit

+
+

red fruit

-

computer

+
+

computer

orange
-

orange fruit

+
+

orange fruit

-

bank

+
+

bank

Blank line after term, indented marker, alternate markers:

apple
-

red fruit

+
+

red fruit

-

computer

+
+

computer

orange
-

orange fruit

+
+

orange fruit

  1. sublist
  2. sublist
  3. -- cgit v1.2.3