[tex4ht] [bug #279] Missing \par in configurations of sectioning commands

Michal Hoftich michal.h21 at gmail.com
Wed Apr 6 15:53:58 CEST 2016


URL:
  <http://puszcza.gnu.org.ua/bugs/?279>

                 Summary: Missing \par in configurations of sectioning
commands
                 Project: tex4ht
            Submitted by: michal_h21
            Submitted on: Wed 06 Apr 2016 04:53:58 PM EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This input:

----
\chapter*{Hello}
 world

\chapter{This}
is better
----

produces wrong output:


----
 <h2 class="likechapterHead"><a 
 id="x1-3000"></a>Hello</h2> world
pterHead"><span class="titlemark">Kapitola 1</span><br /><a 
 id="x1-40001"></a>This</h2>
<!--l. 36--><p class="noindent" >is better
</p>
----

note the missing `<p>` element after `Hello</h2>`. The configuration for
`\chapter` and `\chapter*` in `tex4ht-html4.tex` differs in one thing:

----
\Configure{chapter}{}{}
   {\IgnorePar\EndP\HCode{<h2 class="chapterHead"\a:LRdir>}%
   \TitleMark{\HCode{<br />}}}
   {\HCode{</h2>}\IgnoreIndent\par}

\Configure{likechapter}{}{}
 {\IgnorePar\EndP\HCode{<h2 class="likechapterHead"\a:LRdir>}}
 {\HCode{</h2>}\IgnoreIndent}
----

it is missing `\par` after `\IgnoreIndent`. Does it have some deeper meaning?


Because of huge code duplication configuration for `likechapter` contains
`\par` for some document classes. Configurations for lower sectioning levels
(likesection, likesubsection) contains `\par` and furthermore `\ShowPar`
commands, so they doesn't show this behavior. 




    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?279>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list