Remove trailing whitespace from api.php's HTML output

Change-Id: Ib00948dfcb94272e0809d3f732b03f2b5365b65d