Skip to content

Commit

Permalink
Fix App Identity sample HTML to match Google Style.
Browse files Browse the repository at this point in the history
Google style expects valid HTML, so I added the missing title and
character encoding tags. Also, attributes should use double quotes, not
single quotes.

https://google.github.io/styleguide/htmlcssguide.xml
  • Loading branch information
tswast committed Jan 8, 2016
1 parent d289deb commit 4fc5990
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ public UrlShortenerServlet() {
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
PrintWriter w = resp.getWriter();
w.println("<!DOCTYPE html>");
w.println("<form method='post'>");
w.println("<label for='longUrl'>URL:</label>");
w.println("<input id='longUrl' name='longUrl' type='text'>");
w.println("<input type='submit' value='Shorten'>");
w.println("<meta charset=\"utf-8\">");
w.println("<title>Asserting Identity to Google APIs - App Engine App Identity Example</title>");
w.println("<form method=\"post\">");
w.println("<label for=\"longUrl\">URL:</label>");
w.println("<input id=\"longUrl\" name=\"longUrl\" type=\"text\">");
w.println("<input type=\"submit\" value=\"Shorten\">");
w.println("</form>");
}

Expand Down

0 comments on commit 4fc5990

Please sign in to comment.