From 7f36e58ef077e2bf3ff4592144b6be7ccc0db8de Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 16 Oct 2020 17:22:43 +0000 Subject: In HTML output, avoid printing a newline right after
 and right
 before 
because that resulted in vertical whitespace not requested by the manual page author. Formatting bug reported by Aman Verma on discuss@. --- regress/man/HP/literal.out_html | 18 ++++++---------- regress/man/IP/literal.out_html | 42 +++++++++++++------------------------- regress/man/RS/literal.out_html | 18 ++++++---------- regress/man/SY/literal.out_html | 16 +++++---------- regress/man/TP/literal.out_html | 18 ++++++---------- regress/mdoc/Bd/nf.out_html | 18 ++++++---------- regress/mdoc/Bd/paragraph.out_html | 6 ++---- regress/mdoc/Rs/paragraph.out_html | 1 - regress/roff/sp/fill-man.out_html | 6 ++---- regress/roff/string/dotT.out_html | 1 - 10 files changed, 47 insertions(+), 97 deletions(-) (limited to 'regress') diff --git a/regress/man/HP/literal.out_html b/regress/man/HP/literal.out_html index 08fb26b9..48089e36 100644 --- a/regress/man/HP/literal.out_html +++ b/regress/man/HP/literal.out_html @@ -1,18 +1,12 @@

tag indented text

regular paragraph

-
-literal
-text
-
-
-tag
+
literal
+text
+
tag
 literal
 hanged
-paragraph
-
-
-literal
-paragraph
-
+paragraph
+
literal
+paragraph
regular text
diff --git a/regress/man/IP/literal.out_html b/regress/man/IP/literal.out_html index aa0536e7..ceb26a56 100644 --- a/regress/man/IP/literal.out_html +++ b/regress/man/IP/literal.out_html @@ -3,42 +3,32 @@
indented regular text

new regular paragraph

-
-literal
-text
-
+
literal
+text
-
-indented
+    
indented
 literal
-text
-    
+text
-
-new
+
new
 literal
-paragraph
-
+paragraph
regular text

regular text

-
-literal
-text
-
+
literal
+text
-
-indented
+    
indented
 literal
-text
-    
+text
indented regular text

new regular paragraph

@@ -50,17 +40,13 @@ text
indented regular text -
-indented
+    
indented
 literal
-text
-    
+text
-
-new
+
new
 literal
-paragraph
-
+paragraph
regular text
diff --git a/regress/man/RS/literal.out_html b/regress/man/RS/literal.out_html index 7bd5431b..3429d849 100644 --- a/regress/man/RS/literal.out_html +++ b/regress/man/RS/literal.out_html @@ -1,18 +1,12 @@
initial regular text

-
-literal text
-before display
-
+
literal text
+before display
-
-This is a short line.
-This is a very long line that would wrap if it weren't in literal context.
-
+
This is a short line.
+This is a very long line that would wrap if it weren't in literal context.
-
-literal text
-after display
-
+
literal text
+after display

final regular text
diff --git a/regress/man/SY/literal.out_html b/regress/man/SY/literal.out_html index 9b3e8486..3d63b516 100644 --- a/regress/man/SY/literal.out_html +++ b/regress/man/SY/literal.out_html @@ -7,23 +7,17 @@ middle regular text -

-literal text
-before display
-
+
literal text
+before display
command -
-arguments
-    
+
arguments
-
-literal text
-after display
-
+
literal text
+after display

final regular text
diff --git a/regress/man/TP/literal.out_html b/regress/man/TP/literal.out_html index 914c7b5c..71194770 100644 --- a/regress/man/TP/literal.out_html +++ b/regress/man/TP/literal.out_html @@ -3,23 +3,17 @@

regular indented text

regular paragraph

-
-literal
-text
-
+
literal
+text
-
-indented
+    
indented
 literal
-text
-    
+text
-
-literal
-paragraph
-
+
literal
+paragraph
regular text
diff --git a/regress/mdoc/Bd/nf.out_html b/regress/mdoc/Bd/nf.out_html index 394eb7ed..83083353 100644 --- a/regress/mdoc/Bd/nf.out_html +++ b/regress/mdoc/Bd/nf.out_html @@ -1,20 +1,14 @@ -
-after .nf
-request
-
+
after .nf
+request

after .fi request

-
-in unfilled
-block
-
+
in unfilled
+block
after .fi request in unfilled block
after end of unfilled block
in filled block -
-after .nf request
-in filled block
-
+
after .nf request
+in filled block
after end of filled block
diff --git a/regress/mdoc/Bd/paragraph.out_html b/regress/mdoc/Bd/paragraph.out_html index cc3491c9..22355ed1 100644 --- a/regress/mdoc/Bd/paragraph.out_html +++ b/regress/mdoc/Bd/paragraph.out_html @@ -8,13 +8,11 @@ back to normal

another paragraph

-
- literal
+
 literal
 display
 
  literal
-paragraph
-
+paragraph
again back to normal
diff --git a/regress/mdoc/Rs/paragraph.out_html b/regress/mdoc/Rs/paragraph.out_html index ba5fb63a..bfb0a724 100644 --- a/regress/mdoc/Rs/paragraph.out_html +++ b/regress/mdoc/Rs/paragraph.out_html @@ -13,4 +13,3 @@

in a paragraph:

another author, another book.

-
diff --git a/regress/roff/sp/fill-man.out_html b/regress/roff/sp/fill-man.out_html
index 054b6359..213d4601 100644
--- a/regress/roff/sp/fill-man.out_html
+++ b/regress/roff/sp/fill-man.out_html
@@ -1,7 +1,5 @@
 

switch to no-fill mode:

-
-in no-fill mode:
+
in no-fill mode:
 
 back to
-fill mode:
-
+fill mode:
diff --git a/regress/roff/string/dotT.out_html b/regress/roff/string/dotT.out_html index 0a019b20..51ab1411 100644 --- a/regress/roff/string/dotT.out_html +++ b/regress/roff/string/dotT.out_html @@ -1,3 +1,2 @@

We are using the html device.

The device name can be overridden.

-
-- 
cgit v1.2.3-56-ge451