I had a bibliography item with url that breaks in two line. The break is fine but the box is too wide on the right which there is empty space in the box.
Here is my code
\documentclass[12pt]{article}
\special{papersize=8.5in,11in}
% Packages Section
%=================
\usepackage{amssymb} % Complex numbers
\usepackage{bbding} % Symbols
\usepackage{bm} % Bold Math
\usepackage{enumerate}
\usepackage{gensymb}
\usepackage{fancyhdr}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{float}
\usepackage[justification=centering]{caption}
\usepackage[hyphens]{url}
\usepackage[pdftex,breaklinks=true]{hyperref}
\usepackage{listings}
\usepackage{mathtools}
\usepackage[pdftex]{graphicx}
\usepackage{setspace}
\usepackage{subcaption}
\usepackage{textcomp}
\usepackage[usenames, dvipsnames, pdftex]{xcolor}
\usepackage[utf8]{inputenc} % Support for french language
\usepackage{wordlike}
\usepackage{txfonts}
\usepackage{pgfplots}
\usetikzlibrary{arrows,shadows,positioning}
% Set up Section
%===============
% Page configuration
\pagestyle{fancy}
\fancyhf{}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{}
\rfoot{\thepage}
% Remove the header line
\renewcommand{\headrulewidth}{0pt}
% Setup subsection format
\renewcommand\thesubsubsection{\arabic{section}.\arabic{subsection}}
% Setup enumeration
\renewcommand{\labelenumi}{\alph{enumi})}
% Paragraph configuration
\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}
% Listing configuration
\definecolor{light-gray}{gray}{0.75}
\newcommand{\me}[1]{\mathrm{\emph{e}}^{#1}}
\newcommand{\jcplx}[0]{\mathrm{\emph{j}}}
% Setup listings
\lstset {
language=Matlab,
frame=single,
backgroundcolor=\color{light-gray},
breaklines=true,
basicstyle=\tiny\ttfamily,
keywordstyle=\bfseries\color{blue!40!black},
commentstyle=\itshape\color{green!40!black},
identifierstyle=\color{blue},
stringstyle=\color{red},
showstringspaces=false,
captionpos=t
}
% Text Section
%=============
\begin{document}
\begin{thebibliography}{9}
\bibitem{svm}
Analytics Vidhya : Understanding Support Vector Machine algorithm
from examples (along with examples),
\\\url{https://www.analyticsvidhya.com/blog/2017/09/understaing-support-vector-machine-example-code/}
\end{thebibliography}
\end{document}
Which gives the following:
Is that any way how to make the box stop write just after the url text?


\usepackage[hidelinks]{hyperref}to make it disappear, or\usepackage[colorlinks]{hyperref}to paint the text instead. – Phelype Oleinik Feb 05 '18 at 00:42wordlikefor emulating poor typesetting, you shouldn’t worry about that break. – egreg Feb 05 '18 at 08:06