Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Multiline annotations doesn't work #1073

@laurent-alfonsi-linaro

Description

@laurent-alfonsi-linaro

Hi I have tried to add a multi-line annotation, but it doesn't work.

$ curl --header 'Authorization: Token ' --data 'description=

the following benchmarks grew in size by more than 1%:
- 445.gobmk grew in size by 40% from 1406470 to 1963955 bytes
- 471.omnetpp grew in size by 15% from 554691 to 635347 bytes
- 483.xalancbmk grew in size by 12% from 3538944 to 3978300 bytes
- 400.perlbench grew in size by 12% from 938695 to 1048052 bytes

 &build=/api/builds/117225/'   https://qa-reports.linaro.org/api/annotations/
 {"url":"https://qa-reports.linaro.org/api/annotations/14/","id":14,"description":" the following benchmarks grew in size by more than 1%:\n - 445.gobmk grew in size by 40% from 1406470 to 1963955 bytes\n - 471.omnetpp grew in size by 15% from 554691 to 635347 bytes\n - 483.xalancbmk grew in size by 12% from 3538944 to 3978300 bytes\n - 400.perlbench grew in size by 12% from 938695 to 1048052 bytes","build":"https://qa-reports.linaro.org/api/builds/117225/"}

as you can see the \n are well stored in the database.

but the page displayed on qa-reports server shows all in one line :

Annotation: the following benchmarks grew in size by more than 1%: - 445.gobmk grew in size by 40% from 1406470 to 1963955 bytes - 471.omnetpp grew in size by 15% from 554691 to 635347 bytes - 483.xalancbmk grew in size by 12% from 3538944 to 3978300 bytes - 400.perlbench grew in size by 12% from 938695 to 1048052 bytes*

which is not very readable.

Can you confirm that this is a bug ? Is it be possible to add this to
your todo list ?

PS : I have also tried with html
. It doesn't work better. please advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions