\allowbreak
is only
\penalty 0
, which is "allow break without extra costs" only. But there are other costs, because the line would be underfull in justified text. So even
\linebreak[3]
wouldn't be enough.
\linebreak
(that is same like
\linebreak[4]
would be enough, but result in an
Underfull \hbox (badness 10000) in paragraph at lines 20--21
warning, because of the not justifiable text. Best would be so print such text ragged, e.g.
Code: Select all
\documentclass{article}
%allow to change pageborders
\usepackage{geometry}
\geometry{
a4paper,
total={170mm,257mm},
left=20mm,
top=20mm,
showframe% show the areas of the page for debugging
}
\begin{document}
abc
/n1:BR-CompanyDetailsResponse[1]/bacco:Company[1]/bacad:RegisterffffffffedOffice[1]/\allowbreak/bbc:AddressLine1[1]
\begin{flushleft}
/n1:BR-CompanyDetailsResponse[1]/bacco:Company[1]/bacad:RegisteredOffffffffffffffffffffffffffffffffice[1]/\allowbreak/bbc:AddressLine1[2]
\end{flushleft}
\end{document}
Alternatively you could use
\hfil\allowbreak
instead of
\allowbreak
. But if you'd use this more than once in a line, there would be extra space inside the line.
BTW: Please don't use tag/button
LaTex
for several lines of code. Use the
Code
tag/button instead.