Merge "Soong: Update the filegroup's synopsis documentation."
diff --git a/cmd/soong_build/writedocs.go b/cmd/soong_build/writedocs.go
index 5171b68..d011e77 100644
--- a/cmd/soong_build/writedocs.go
+++ b/cmd/soong_build/writedocs.go
@@ -276,8 +276,9 @@
     {{- else -}}
       <div class="simple" id="{{getModule}}.{{.Name}}">
         <span class="fixed">&nbsp;</span><b>{{.Name}} {{range .OtherNames}}, {{.}}{{end -}}</b>
-        {{- if .Text -}}{{.Text}}{{- end -}}
-        {{- with .OtherTexts -}}{{.}}{{- end -}}<i>{{.Type}}</i>
+        <i>{{.Type}}</i>
+        {{- if .Text -}}{{if ne .Text "\n"}}, {{end}}{{.Text}}{{- end -}}
+        {{- with .OtherTexts -}}{{.}}{{- end -}}
 	{{- if .Default -}}<i>Default: {{.Default}}</i>{{- end -}}
       </div>
     {{- end}}