Skip to content

Commit

Permalink
Merge pull request #134 from vladimir-babichev/no-bare-urls-in-requir…
Browse files Browse the repository at this point in the history
…ements-table

Add angle brackets around urls in requirementsTable
  • Loading branch information
norwoodj authored Apr 25, 2022
2 parents a126ae1 + ea66ad2 commit 361c7d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/document/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ func getRequirementsTableTemplates() string {
requirementsSectionBuilder.WriteString("|------------|------|---------|")
requirementsSectionBuilder.WriteString(" {{- range .Dependencies }}")
requirementsSectionBuilder.WriteString(" {{- if .Alias }}")
requirementsSectionBuilder.WriteString("\n| {{ .Repository }} | {{ .Alias }}({{ .Name }}) | {{ .Version }} |")
requirementsSectionBuilder.WriteString("\n| <{{ .Repository }}> | {{ .Alias }}({{ .Name }}) | {{ .Version }} |")
requirementsSectionBuilder.WriteString(" {{- else }}")
requirementsSectionBuilder.WriteString("\n| {{ .Repository }} | {{ .Name }} | {{ .Version }} |")
requirementsSectionBuilder.WriteString("\n| <{{ .Repository }}> | {{ .Name }} | {{ .Version }} |")
requirementsSectionBuilder.WriteString(" {{- end }}")
requirementsSectionBuilder.WriteString(" {{- end }}")
requirementsSectionBuilder.WriteString("{{ end }}")
Expand Down

0 comments on commit 361c7d0

Please sign in to comment.