Skip to content

Commit

Permalink
Merge pull request #112 from cipherboy/checkbox-space
Browse files Browse the repository at this point in the history
Insert space after task-list checkboxes
  • Loading branch information
yuin authored Mar 8, 2020
2 parents 5ab7c64 + 5c877c8 commit fea52e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions extension/_test/tasklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
- [x] bar
//- - - - - - - - -//
<ul>
<li><input disabled="" type="checkbox">foo</li>
<li><input checked="" disabled="" type="checkbox">bar</li>
<li><input disabled="" type="checkbox"> foo</li>
<li><input checked="" disabled="" type="checkbox"> bar</li>
</ul>
//= = = = = = = = = = = = = = = = = = = = = = = =//

Expand All @@ -19,12 +19,12 @@
- [ ] bim
//- - - - - - - - -//
<ul>
<li><input checked="" disabled="" type="checkbox">foo
<li><input checked="" disabled="" type="checkbox"> foo
<ul>
<li><input disabled="" type="checkbox">bar</li>
<li><input checked="" disabled="" type="checkbox">baz</li>
<li><input disabled="" type="checkbox"> bar</li>
<li><input checked="" disabled="" type="checkbox"> baz</li>
</ul>
</li>
<li><input disabled="" type="checkbox">bim</li>
<li><input disabled="" type="checkbox"> bim</li>
</ul>
//= = = = = = = = = = = = = = = = = = = = = = = =//
4 changes: 2 additions & 2 deletions extension/tasklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ func (r *TaskCheckBoxHTMLRenderer) renderTaskCheckBox(w util.BufWriter, source [
w.WriteString(`<input disabled="" type="checkbox"`)
}
if r.XHTML {
w.WriteString(" />")
w.WriteString(" /> ")
} else {
w.WriteString(">")
w.WriteString("> ")
}
return gast.WalkContinue, nil
}
Expand Down

0 comments on commit fea52e8

Please sign in to comment.