Texinfo writer: fix spacing bug around HorizontalRule.

Closes #11749.
This commit is contained in:
John MacFarlane
2026-07-07 16:58:44 +02:00
parent 9a94445b6a
commit db7efddf74
2 changed files with 25 additions and 1 deletions
+2 -1
View File
@@ -241,7 +241,8 @@ blockToTexinfo HorizontalRule =
text "@end iftex" $$
text "@ifnottex" $$
text (replicate 72 '-') $$
text "@end ifnottex"
text "@end ifnottex" $$
blankline
blockToTexinfo (Header 0 _ lst) = do
txt <- if null lst
+23
View File
@@ -0,0 +1,23 @@
```
% pandoc -t texinfo
Before
----
After
^D
@node Top
@top Top
Before
@iftex
@bigskip@hrule@bigskip
@end iftex
@ifnottex
------------------------------------------------------------------------
@end ifnottex
After
```