Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
templates: Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bakape committed Apr 21, 2019
1 parent e3217a9 commit d8fdb83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/body.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ func (c *bodyContext) parseFragment(frag string) {
if leadPunct != 0 {
c.byte(leadPunct)
}
if (strings.Count(word, "(") == strings.Count(word, ")")+1) &&
(trailPunct == ')') && (strings.Contains(word, "http")) {
if (strings.Count(word, "(") == strings.Count(word, ")")+1) &&
(trailPunct == ')') && (strings.Contains(word, "http")) {
word += ")"
trailPunct = ' '
}
Expand Down

0 comments on commit d8fdb83

Please sign in to comment.