Skip to content

Commit 259b942

Browse files
committed
Indent blocks that gofmt would mistake for markdown
As of go 1.19 it will try to format markdown nicely, but in both these cases the formatting isn't supposed to be interpreted this way, so indent it to make it a preformatted block.
1 parent 6ac6a81 commit 259b942

File tree

2 files changed

+24
-25
lines changed
  • go
    • extractor/srcarchive
    • ql/test/library-tests/semmle/go/frameworks/Revel/examples/booking/app/controllers

2 files changed

+24
-25
lines changed

go/extractor/srcarchive/projectlayout.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
// ProjectLayout describes a very simple project layout rewriting paths starting
1212
// with `from` to start with `to` instead.
1313
//
14-
// We currently only support project layouts of the form
14+
// We currently only support project layouts of the form:
1515
//
16-
// # to
17-
// from//
16+
// # to
17+
// from//
1818
type ProjectLayout struct {
1919
from, to string
2020
}

go/ql/test/library-tests/semmle/go/frameworks/Revel/examples/booking/app/controllers/hotels.go

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -74,28 +74,27 @@ func (c Hotels) Index() revel.Result {
7474

7575
// swagger:operation GET /demo demo
7676
//
77-
// Enter Demo
78-
//
79-
//
80-
// ---
81-
// produces:
82-
// - text/html
83-
// parameters:
84-
// - name: user
85-
// in: formData
86-
// description: user
87-
// required: true
88-
// type: string
89-
// - name: demo
90-
// in: formData
91-
// description: demo
92-
// required: true
93-
// type: string
94-
// responses:
95-
// '200':
96-
// description: Success
97-
// '401':
98-
// description: Invalid User
77+
// # Enter Demo
78+
//
79+
// ---
80+
// produces:
81+
// - text/html
82+
// parameters:
83+
// - name: user
84+
// in: formData
85+
// description: user
86+
// required: true
87+
// type: string
88+
// - name: demo
89+
// in: formData
90+
// description: demo
91+
// required: true
92+
// type: string
93+
// responses:
94+
// '200':
95+
// description: Success
96+
// '401':
97+
// description: Invalid User
9998
func (c Hotels) ListJson(search string, size, page uint64) revel.Result {
10099
if page == 0 {
101100
page = 1

0 commit comments

Comments
 (0)