Skip to content

Commit

Permalink
Skip uncommented programs.
Browse files Browse the repository at this point in the history
  • Loading branch information
markkurossi committed Jul 25, 2024
1 parent b51c3bd commit 34c79fb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions apps/mpcldoc/doc_html.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,16 @@ func index(out io.Writer, pkgs, mains []*Package) error {
}
for _, pkg := range mains {
first := pkg.Annotations.FirstSentence()
_, err := fmt.Fprintf(out, `<div class="index">
if len(first) > 0 {
_, err := fmt.Fprintf(out, `<div class="index">
<a href="%s">%s</a>
</div>
`,
fmt.Sprintf("prg_%s.html", pkg.Docfile()),
html.EscapeString(pkg.Name))
if err != nil {
return err
}
if len(first) > 0 {
fmt.Sprintf("prg_%s.html", pkg.Docfile()),
html.EscapeString(pkg.Name))
if err != nil {
return err
}
_, err = fmt.Fprintf(out, "<p>%s</p>\n", html.EscapeString(first))
if err != nil {
return err
Expand Down

0 comments on commit 34c79fb

Please sign in to comment.