See http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....

There is a spare line between every line of code.

Comments

joachim’s picture

Project: Drupal core » Drupal.org infrastructure
Version: 7.x-dev »
Component: documentation » api.drupal.org

Looks like this is actually the fault of this CSS rule on CODE elements:

white-space: pre-wrap;

Moving to the api site issue queue.

jhodgdon’s picture

Title: Documentation problem with forms_api_reference.html - code samples badly formatted » Some code samples badly formatted on Form API reference page
Project: Drupal.org infrastructure » Documentation
Component: api.drupal.org » API documentation files
Issue tags: +FAPI reference

Actually, currently not all the code samples have that problem, just some of them, and it appears to be because some of the code samples have < br > tags embedded in them. So I think this needs to be fixed in the HTML markup for the page itself.