Slightly smarter line label placement