Skip to content

Commit baf139b

Browse files
committed
Makefile: Handle workaround when toplevel option has paragraphs and example
1 parent 9ddea81 commit baf139b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ $(TXML): $(TTXT)
130130

131131
a2x -f docbook $(TTXT)
132132

133+
# Remove garbage lines when a toplevel option has several paragraphs and example
134+
sed -i '/^<simpara>+<\/simpara>/d' $(TXML)
135+
sed -i 's/^<simpara>+/<simpara>/g' $(TXML)
136+
133137
# Workaround required since Pandoc 2.8
134138
# https://github.com/jgm/pandoc/commit/9b5082b086359a63b92bdb40166fa59dea27afe1
135139
# Alternate workaround would be: https://github.com/jgm/pandoc/issues/6906

0 commit comments

Comments
 (0)