janeway icon indicating copy to clipboard operation
janeway copied to clipboard

Custom <label> for <list-item> not displaying on the same line as item text

Open pgoussy opened this issue 9 months ago • 7 comments

Describe the bug I noticed that when list items were assigned custom labels (e.g. "Q1", checkboxes, etc.), only the first item in the list would display the label properly. On all subsequent items, there was an unwanted line break inserted between the label and the actual item text.

Oddly enough, in the example linked/screenshotted below, the first list item contained a nested list, and that entire nested list was properly formatted. In every other item with a nested list, the nested list suffered from the same formatting issue (that is, the first item was correct and every subsequent one had a line break)

Janeway version 1.5.1

To Reproduce Steps to reproduce the behavior:

  1. Go to https://journals.publishing.umich.edu/tia/plugins/typesetting/preview_galley/article/2343/galley/3628/
  2. Observe difference in label placement between Q1, Q2, Q3, etc. (as well as the difference between the first nested list and all following nested lists)

Expected behavior Label for list item should display to the left of the item text on the same line.

Screenshots

2024-05-24_13-58-31

XML from screenshot

<list-item><label>Q1.</label><p>Overall, how challenging was it for you to convert your fall courses to a blended format?
<list list-type="simple">
<list-item><label>&#xF0A1;</label><p>Extremely easy</p></list-item>
<list-item><label>&#xF0A1;</label><p>Somewhat easy</p></list-item>
<list-item><label>&#xF0A1;</label><p>Neither easy nor difficult</p></list-item>
<list-item><label>&#xF0A1;</label><p>Somewhat difficult</p></list-item>
<list-item><label>&#xF0A1;</label><p>Extremely difficult</p></list-item>
</list></p></list-item>
<list-item><label>Q2.</label><p>Prior to Spring 2020, had you taught:
<list list-type="simple">
<list-item><label>&#xF0A1;</label><p>Fully online course(s)</p></list-item>
<list-item><label>&#xF0A1;</label><p>Hybrid course(s) (a blend of online and face-to-face experiences)</p></list-item>
<list-item><label>&#xF0A1;</label><p>Both of the above</p></list-item>
<list-item><label>&#xF0A1;</label><p>Only face-to-face classes</p></list-item>
</list></p></list-item>
<list-item><label>Q3.</label><p>Did you review and/or complete any portion of the blended learning [LMS] course?
<list list-type="simple">
<list-item><label>&#xF0A1;</label><p>Yes</p></list-item>
<list-item><label>&#xF0A1;</label><p>No</p></list-item>
</list></p></list-item>
<list-item><label>Q4.</label><p>What limited your participation in the course? (check all that apply)
<list list-type="simple">
<list-item><label>&#xF0A8;</label><p>I didn&#x2019;t have the time</p></list-item>
<list-item><label>&#xF0A8;</label><p>I didn&#x2019;t need the support</p></list-item>
...```

pgoussy avatar May 24 '24 20:05 pgoussy