[tex4ht-commits] [SCM] tex4ht updated: r993 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Oct 12 17:19:37 CEST 2021


Author: michal_h21
Date: 2021-10-12 15:19:37 +0000 (Tue, 12 Oct 2021)
New Revision: 993

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-ooffice.tex
Log:
fixed handling of paragraphs in \paragraph

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-10-12 12:17:53 UTC (rev 992)
+++ trunk/lit/ChangeLog	2021-10-12 15:19:37 UTC (rev 993)
@@ -3,6 +3,9 @@
 	* tex4ht-html4.tex (html4.4ht): clean up for \paragraph and \subparagraph
 	commands.
 	https://puszcza.gnu.org.ua/bugs/?530#discussion
+	* tex4ht-ooffice.tex (ooffice.4ht): fixed handling of paragraphs in
+	\paragraph and \subpagraph.
+	https://puszcza.gnu.org.ua/bugs/?530#discussion
 
 2021-10-10  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2021-10-12 12:17:53 UTC (rev 992)
+++ trunk/lit/tex4ht-ooffice.tex	2021-10-12 15:19:37 UTC (rev 993)
@@ -467,10 +467,10 @@
 \<utilities\><<<
 \def\:DefineParagraph#1#2{%
 \Configure{#1}
-   {\IgnorePar\EndP \HCode{<!--start of #1 -->}}
-   {\IgnorePar\EndP \HCode{<!--start of #1 -->}}
-   {\bgroup\HTML:PAR{#1-p}{#1-p}\par\HCode{<text:span text:style-name="#2" >}}
-   {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup}
+   {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
+   {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
+   {\bgroup\HTML:PAR{#1-p}{#1-p}\ifvmode\IgnorePar\fi\EndP\par\HCode{<text:span text:style-name="#2" >}}
+   {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup\IgnorePar}
 \:ParagraphStyle{#1-p}
 }
 >>>



More information about the tex4ht-commits mailing list.