Index: wp-content/themes/twentytwelve/style.css
===================================================================
--- wp-content/themes/twentytwelve/style.css	(revision 22261)
+++ wp-content/themes/twentytwelve/style.css	(working copy)
@@ -362,6 +362,9 @@
 	display: block;
 	width: 90%;
 }
+.gallery-caption a {
+	display: inline;
+}
 .gallery-columns-1 .gallery-item a {
 	max-width: 100%;
 	width: auto;
