3.6 Listings

<..configure ooffice listings..>
 \Log:Note{to ensure proper alignments use
    fixed size fonts (see listings.dtx)}
 \Configure{listings}
    {\ifvmode \IgnorePar\fi \EndP
     {\everypar{}\leavevmode}\HCode{<!--l. \the\inputlineno-->}%
      \HCode{<text:p text:style-name="Preformatted-Text">}%
    }
    {{\everypar{}\leavevmode}\HCode{</text:p>}\par}
    {}{}
-_-_-

<..configure ooffice listings..>+
 \ConfigureEnv{lstlisting}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<!--l. \the\inputlineno lstlisting-->}%
     \HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
     \bgroup \special{t4ht@(}%
        \Configure{listings}
          {{\everypar{}\leavevmode}}
          {{\everypar{}\leavevmode}}
          {\HCode{<text:s/><text:line-break/>}}{}%
    }
    {\special{t4ht@)}\egroup
     \ifvmode \IgnorePar\fi \EndP   \HCode{</text:p>}\par}
    {} {}
-_-_-

<..configure ooffice listings..>+
 \Configure{lstinputlisting}
    {\ifvmode \IgnorePar\fi \EndP
     \HCode{<!--l. \the\inputlineno lstinputlisting-->}%
     \HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
     \bgroup \tt \special{t4ht@(}%
        \Configure{listings}
          {{\everypar{}\leavevmode}}
          {{\everypar{}\leavevmode}}
          {\HCode{<text:s/><text:line-break/>}}
          {\HCode{<text:line-break/>}}%
    }
    {\special{t4ht@)}\egroup
     \ifvmode \IgnorePar\fi \EndP   \HCode{</text:p>}\par}
-_-_-

<..configure ooffice-mml latex..>+
 \def\:nbsp{\ifmtext <.unicode space.>\else\ifmathml
     \Tg<\a:mathml mspace />\else <.oo space.>\fi\fi}
-_-_-

<..unicode space..>
 \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
-_-_-

<..oo space..>
 \ht:special{t4ht@+<text{58}s/>}x%
-_-_-

Nonbraking spaces may go to aux files and need protect the colon and semicolons from catcode changes when loaded, e.g., in french.