internetarchive / internetarchive/openlibrary

Multiline series info truncated on edit

Open
#6,370 4 comments 0 reactions 0 assignees View on GitHub
Lead: @cdrini Priority: 3 Theme: Editing Theme: Series Type: Bug
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

Series info not displayed correctly on edit page when it consists of multiple lines. This leads to truncation and therefore loss of series info.

### Evidence / Screenshot (if possible)

[First version](https://openlibrary.org/books/OL37767358M/La_Roue_du_Temps_XI?v=1):

![image](https://user-images.githubusercontent.com/73437497/161441225-782dc8fd-4593-4042-9f03-66762880672c.png)

[While editing](https://openlibrary.org/books/OL37767358M/La_Roue_du_Temps_XI/edit):

![image](https://user-images.githubusercontent.com/73437497/161441302-432f70e4-cd48-4f1f-8f45-3f4fb8f5a7b7.png)

[Post-edit](https://openlibrary.org/books/OL37767358M/La_Roue_du_Temps_XI?v=2):

![image](https://user-images.githubusercontent.com/73437497/161441385-b9f07870-61c6-41f4-952b-09812616b567.png)

[Rev. 1/Rev. 2 diff](https://openlibrary.org/books/OL37767358M/La_Roue_du_Temps_XI?_compare=Comparer&b=2&a=1&m=diff):

![image](https://user-images.githubusercontent.com/73437497/161441429-08f7b9d3-3274-4039-8644-a32bce73bd87.png)

### Relevant url?

### Steps to Reproduce

See screenshots above.

* Actual:
* Expected:

### Details

- **Logged in (Y/N)?** Y
- **Browser type/version?**
- **Operating system?**
- **Environment (prod/dev/local)?** prod

### Proposal & Constraints

Use a textarea or display multilines as one line separated by commas

### Related files

### Stakeholders

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.