Fixes missing footers in Source tab of http://source.android.com

Also fixes broken style in bottom half of http://source.android.com/source/download.html

Change-Id: I340c69c6dfe55aabc8446dd9313597bf88d6b369
diff --git a/pdk/docs/source/download.jd b/pdk/docs/source/download.jd
index 98e0478..c786bdc 100644
--- a/pdk/docs/source/download.jd
+++ b/pdk/docs/source/download.jd
@@ -1,6 +1,7 @@
 page.title=Get Android Source Code
 doc.type=source
 @jd:body
+<div>
 <div><br>This document describes how to set up your local work environment, how to use Repo to get the Android files, and how to build the files on your machine.<br><br>Related reading:<br></div>
 <ul><li>For an overview of the entire code-review and code-update process, see
 <a href="{@docRoot}source/life-of-a-patch.html">Life of a Patch</a>
@@ -23,30 +24,21 @@
 The Android build is routinely tested on recent versions of Ubuntu (6.06 and later), but reports of successes or failures on other distributions are welcome.<br><h4>
 Ubuntu Linux (32-bit x86)</h4>
 <div>To set up your Linux development environment, make sure you have the following:</div>
-<div><div><div><ul><li>Required Packages:</li>
+<div><ul><li>Required Packages:</li>
 <ul><li>Git 1.5.4 or newer <span>and the GNU Privacy Guard.<br></span>
 </li>
 </ul>
 </ul>
 </div>
-</div>
-</div>
-</div>
-<div><div><div><div><ul><ul><li>JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with @Override.<br></li>
+<div><ul><ul><li>JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with @Override.<br></li>
 </ul>
 </ul>
 </div>
-</div>
-</div>
-</div>
-<div><div><div><div><ul><ul><li><span>flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.</span>
+<div><ul><ul><li><span>flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.</span>
 </li>
 </ul>
 </ul>
 </div>
-</div>
-</div>
-</div>
 <blockquote><span>$ sudo apt-get install</span>
 <span>git-core gnupg</span>
 <span>sun-java5-jdk</span>
@@ -54,14 +46,11 @@
 libwxgtk2.6-dev build-essential zip <span>curl libncurses5-dev zlib1g-dev <br></span>
 </span>
 </blockquote>
-<div><div><div><div><ul><li><span><span>You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.</span>
+<div><ul><li><span><span>You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.</span>
 </span>
 </li>
 </ul>
 </div>
-</div>
-</div>
-</div>
 <blockquote><div><span>$ sudo apt-get install valgrind <br></span>
 </div>
 </blockquote>
@@ -70,8 +59,7 @@
 8.10) users may need a newer version of libreadline:</li>
 </ul>
 <div>$ sudo apt-get install lib32readline5-dev <br></div>
-</div>
-<div><div><div><div><div><div><h4>
+<div><h4>
 Ubuntu Linux (64-bit x86)</h4>
 This has not been as well tested. Please send success or failure reports to <a href="mailto:android-porting@googlegroups.com">android-porting@googlegroups.com</a>
 .</div>
@@ -86,9 +74,6 @@
 </ul>
 </ul>
 </div>
-</div>
-</div>
-</div>
 <blockquote><span><span>$</span>
 sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl</span>
 sun-java5-jdk <span><span>zlib1g-dev</span>
@@ -98,7 +83,7 @@
 </ul>
 <ul><li>X11: Ubuntu doesn't have packages for the X11 libraries, but that can be worked around with the following command:<br><br>$ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so <br><br></li>
 </ul>
-<div><div><div><div><div><h4>
+<div><h4>
 Running Linux in a virtual machine</h4>
 If you are running Linux in a virtual machine, you will need at least 1.5GB of RAM and 10GB or more of disk space in order to build the Android tree.<br><h4>
 Other Linux</h4>
@@ -163,8 +148,6 @@
 Note that this may not be necessary; on some systems, the output of "ulimit -S" will show "unlimited". In this case, there is no need to set the limit to 1024.</li>
 </ol>
 </div>
-</div>
-</div>
 <div><br></div>
 <h2>
 Installing Repo <br></h2>
@@ -181,7 +164,6 @@
 <br>$ curl http://android.git.kernel.org/repo &gt;~/bin/repo <div>$ chmod a+x ~/bin/repo</div>
 </li>
 </ol>
-</div>
 <div><p><br></p>
 <h2>
 Initializing a Repo client <br></h2>
@@ -239,8 +221,6 @@
 directory under their project names.</span>
 </span>
 <br></div>
-<span><h2>
-<br></h2>
 <h2>
 Verifying Git Tags</h2>
 <span>Load the following public key into your GnuPG key database.The key is used to sign annotated tags that represent releases.</span>
@@ -292,6 +272,3 @@
 code-review server, see <a href="{@docRoot}source/submit-patches.html">Contribute</a>
 .</span>
 </div>
-</div>
-</div>
-</div>
diff --git a/pdk/docs/source/git-repo.jd b/pdk/docs/source/git-repo.jd
index 8905780..3abb0e3 100644
--- a/pdk/docs/source/git-repo.jd
+++ b/pdk/docs/source/git-repo.jd
@@ -1,6 +1,7 @@
 page.title=Using Repo and Git
 doc.type=source
 @jd:body
+<div>
 <p>To work with the Android code, you will need to use both Git and Repo.<br></p>
 <ul><li><i>Git</i>
 is an open-source version-control system designed to handle very large projects that are distributed over multiple repositories. In the context of Android, we use Git for local operations such as local branching, commits, diffs, and edits.<br><br></li>
@@ -22,8 +23,8 @@
 In most situations, you can use Git instead of Repo, or mix Repo and Git
 commands to form complex commands. Using Repo for basic across-network
 operations will make your work much simpler, however.
-<br></div>
-<div><div><h2>
+<br>
+<div><h2>
 Task reference <br></h2>
 The task list below shows a summary of how to do common Repo and Git tasks.
 For complete quick-start information and examples, see <a
@@ -316,4 +317,3 @@
 At intervals, you use git commit to save a snapshot of the staged files and a log message that describes the change.<br><br><i>Manifest</i>
 <br>A manifest file that contains a list of repositories and a mapping of where the files from these repositories will be located within your working directory. When you synchronize your files, the files contained in the repositories that are listed in the manifest will be pulled into your working directory.</div>
 </div>
-</div>
diff --git a/pdk/docs/source/submit-patches.jd b/pdk/docs/source/submit-patches.jd
index b9b11fa..fa4cf5f 100644
--- a/pdk/docs/source/submit-patches.jd
+++ b/pdk/docs/source/submit-patches.jd
@@ -1,6 +1,7 @@
 page.title=Android Contributors' Workflow
 doc.type=source
 @jd:body
+<div>
 <br>This page describes how to record changes to the Android files on your local client, upload those changes to the code-review server, and use Gerrit to track changes.<br><h2>
 Prerequisites</h2>
 Before you follow the instructions on this page, you will need to set up your
@@ -132,8 +133,8 @@
 </ul>
 <h3>
 Viewing diffs and comments</h3>
-To open the details of the change within Gerrit, click on the "Id number" or "Subject" of a change. To compare the established code with the updated code, click the file name under "Side-by-side diffs."<br></div>
-<div><h3>
+To open the details of the change within Gerrit, click on the "Id number" or "Subject" of a change. To compare the established code with the updated code, click the file name under "Side-by-side diffs."<br>
+<h3>
 Adding comments</h3>
 Anyone in the community can use Gerrit to add inline comments to code submissions. A good comment will be relevant to the line or section of code to which it is attached in Gerrit. It might be a short and constructive suggestion about how a line of code could be improved, or it might be an explanation from the author about why the code makes sense the way it is.<br><br>To add an inline comment, double-click the relevant line of the code and write your comment in the text box that opens. When you click Save, only you can see your comment.<br><br>To publish your comments so that others using Gerrit will be able to see them, click the Publish Comments button. Your comments will be emailed to all relevant parties for this change, including the change owner, the patch set uploader (if different from the owner), and all current reviewers.<br><br><h3>
 After a submission is approved</h3>
@@ -162,7 +163,4 @@
 attention once a proposed fix is added and tests are included. See
 <a href="http://webkit.org/coding/contributing.html">Contributing Code to
 WebKit</a> for details.
-<br>
-</div>
-</div>
 </div>