[tex4ht] [bug #552] Unwanted space at \hspace{0pt}

Michal Hoftich puszcza-hackers at gnu.org.ua
Fri Feb 11 09:46:26 CET 2022


Follow-up Comment #6, bug #552 (project tex4ht):

You can do something like this:

%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,a4paper]{article}

\usepackage[comma,colon]{natbib}
\newcommand\possiblebreak{\hspace{0pt}}

\begin{document}

\begin{thebibliography}{}

\bibitem[{Gulf News}(2021)]{gul21OHB}
{Gulf News} (2021) {Video: A rare migratory bird rescued by Dubai resident
(2021 May 20).}
Downloaded from https://gulfnews.com/\possiblebreak uae/\possiblebreak
environment/\possiblebreak
video-a-rare-migratory-bird-rescued-by-dubai-resident-1.79307000.

\end{thebibliography}

\end{document} 
%%%%%%%%%%%%%%%%%

And then redefine the \possiblebreak in the .cfg file:

%%%%%%%%%%
\Preamble{xhtml}
\renewcommand\possiblebreak{\nobreak}
\begin{document}
\EndPreamble
%%%%%%%%%%

    _______________________________________________________

Reply to this item at:

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

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



More information about the tex4ht mailing list.