\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}
{}{}
-_-_-
\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{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}
-_-_-
\leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
-_-_-
\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.