mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-05 05:20:34 +00:00
Small refactorings, test multiline description.
This commit is contained in:
Vendored
+3
-3
@@ -119,12 +119,12 @@ func (c *ControlFileReader) ReadStanza() (Stanza, error) {
|
||||
_, lastFieldMultiline = multilineFields[lastField]
|
||||
if lastFieldMultiline {
|
||||
stanza[lastField] = parts[1]
|
||||
if parts[1] != "" {
|
||||
stanza[lastField] += "\n"
|
||||
}
|
||||
} else {
|
||||
stanza[lastField] = strings.TrimSpace(parts[1])
|
||||
}
|
||||
if lastFieldMultiline && stanza[lastField] != "" {
|
||||
stanza[lastField] += "\n"
|
||||
}
|
||||
}
|
||||
}
|
||||
if err := c.scanner.Err(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user