Remove duplicate code again
Remove duplicate code again

jasco/WeasyPrint,Kozea/WeasyPrint,Kozea/WeasyPrint,andrewleech/WeasyPrint,jasco/WeasyPrint,prepare/TestWeasyPrint,marclaporte/WeasyPrint,andrewleech/WeasyPrint,prepare/TestWeasyPrint,marclaporte/WeasyPrint