Permalink
Browse files

Add the missing space from Twitter Bootstrap

  • Loading branch information...
1 parent 5b47a38 commit 885f9fff81e3da4ef340d7b1786dc9c757709f2a @PerWiklander PerWiklander committed Apr 22, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/main/java/com/github/gwtbootstrap/client/ui/Heading.java
@@ -116,7 +116,11 @@ private void redraw() {
*/
public void setText(String text) {
this.text = text;
- getElement().setInnerHTML(text + small.toString());
+
+ // Add a space after the main heading text to get the same effect as Twitter Bootstrap.
+ // <h1>Some text <small>Some subtext</small></h1>
+ // ^- Note the space
+ getElement().setInnerHTML(text + " " + small.toString());
}
/**

0 comments on commit 885f9ff

Please sign in to comment.