Improve log message margin calculation when drawing right side branch label

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>