Weil–Petersson and little Teichmüller spaces on the real line