Skip to content
Snippets Groups Projects
  • Martina Ferrari's avatar
    trim_lines: Remove prefix from continuation lines · 16834e58
    Martina Ferrari authored
    Currently, the `trim_lines` function has three problems:
    
    1. The `$repoid` parameter is appended to each continuation line, but not to
    the first line, creating confusion as it is not part of the message otherwise.
    2. There is no separation between `$repoid` and the rest of the trimmed line,
    resulting in messages like this:
    ```
    > piuparts pipeline Jane Doe 000001 * [2 seconds] failed (flake8: success; check-salsaci-overrides: success; extract-source: success; nosetests: success; piuparts: skipped; blhc: skipped; black: success; mypy: failed; test-build-any: skipped; build source: success; build i386: failed; test-build-all: skipped; reprotest: skipped; lintian: sk
    > Debianipped; autopkgtest: skipped; build: failed)
    ```
    3. The text is cut without regards to line breaks.
    
    This commit solves the first two problems by eliminating the use of `$repoid`
    altogether.
    16834e58