Make macro code in doc nicer