(s *commitScanner, dst *string, self commitState)
| 268 | } |
| 269 | |
| 270 | func continuationCont(s *commitScanner, dst *string, self commitState) (commitState, error) { |
| 271 | line, err := s.readLine() |
| 272 | if err != nil && err != io.EOF { |
| 273 | return nil, err |
| 274 | } |
| 275 | if len(line) > 0 && line[0] == ' ' { |
| 276 | *dst += string(line[1:]) |
| 277 | if err == io.EOF { |
| 278 | return nil, nil |
| 279 | } |
| 280 | return self, nil |
| 281 | } |
| 282 | if len(line) > 0 { |
| 283 | s.pushBack(line, err) |
| 284 | } |
| 285 | return scanHeaders, nil |
| 286 | } |
| 287 | |
| 288 | // scanSkipCont discards continuation lines that belong to a header scanHeaders |
| 289 | // chose to drop. |
no test coverage detected
searching dependent graphs…