<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<p>How have you managed to get the UNIX LF-only line breaks to work
in the staff interface view mode? Normally, web browsers don't
render them. Have you used CSS? Or are you searching and replacing
them with HTML br tags?<br>
</p>
<p><br>
</p>
<p>Andrew.</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 08/03/2021 15:39, RENTON Scott
wrote:<br>
</div>
<blockquote type="cite" cite="mid:AS8PR05MB7624FC2406602CE78926B337BA939@AS8PR05MB7624.eurprd05.prod.outlook.com">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;font-size:12pt;color:black">Hi folks,</span>
<div style="margin:0px;font-size:12pt;color:black"><br>
</div>
<div style="margin:0px;font-size:12pt;color:black">Sorry to have
two tickets in at once. I tried this one out on the Google
Group- thought I'd hit paydirt, but then discovered the advice
was helpful but didn't solve the issue.</div>
<div style="margin:0px;font-size:12pt;color:black">
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
<br>
</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
We're just trying to get our heads round line breaks
assignation. We have an archivist who is cataloguing
content, and we notice through the API that they are being
recorded with Windows (CR-LF) line endings.</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
<br>
</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
<div style="margin:0px"><font color="blue"> "subnotes": [</font></div>
<div style="margin:0px"><font color="blue"> {</font></div>
<div style="margin:0px"><font color="blue">
"jsonmodel_type": "note_text",</font></div>
<div style="margin:0px"><font color="blue">
"content": "Recorded by E. Sinclair on Vatersay in 1962,
(eg. SA1962.05)<b>\r\n\r\n</b>Recorded by James Ross on
Vatersay in 1956, (eg.SA1956.069.1, SA1956.087)<b>\r\n\r\n</b>This
lady is great (SA1960.124 proverbs)! JB 9/6/09<b>\r\n\r\n</b>There
is a duplicate 5810 - use this one. EmM 9/6/09<b>\r\n\r\n</b>biog
info on SA1958.157 track 3. \"Brief history of
contributor.<b>\r\n\r\n</b>Nan MacKinnon was born in
Kentangaval in 1903, and moved to Vatersay at age four.
She spent several years working on the mainland, then
came home and worked at the herring. She learned most of
her songs when she came home, from her mother.\" more
detail on tape, mentions other place names.",</font></div>
<div style="margin:0px"><font color="blue">
"publish": false</font></div>
<div style="margin:0px"><font color="blue"> }</font></div>
</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
<br>
</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
It appears that these line breaks do not appear in 'View'
mode in the frontend as being respected, but while we can
see them in 'Edit' mode, the cataloguers do need to see the
line breaks in 'View' mode. If we were seeing UNIX LF
endings (\n), it does seem to work.</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
<br>
</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
We thought it was just that the users had been cutting and
pasting from a Word Doc, and if we changed manually in the
interface they'd be fixed, but apparently not. Even copying
in the content in the attached file- which I've converted to
UNIX file endings results in Windows ones. Is it possible
there's a hidden character I'm not converting that's
governing all of this?</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
<br>
</div>
<div style="margin:0px;font-family:Roboto, RobotoDraft,
Helvetica, Arial, sans-serif;font-size:14px">
Cheers<br>
Scott</div>
</div>
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000;
font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0px; margin-bottom:0px; margin-top:0;
margin-bottom:0"><br>
</p>
<p style="margin-top:0px; margin-bottom:0px; margin-top:0;
margin-bottom:0">==========</p>
<p style="margin-top:0px; margin-bottom:0px; margin-top:0;
margin-bottom:0">Scott Renton</p>
<p style="margin-top:0px; margin-bottom:0px; margin-top:0;
margin-bottom:0">Digital Library Development &
Systems</p>
<p style="margin-top:0px; margin-bottom:0px; margin-top:0;
margin-bottom:0">Floor F East</p>
<p style="margin-top:0px; margin-bottom:0px; margin-top:0;
margin-bottom:0">Argyle House</p>
<p style="margin-top:0px; margin-bottom:0px; margin-top:0;
margin-bottom:0">515219</p>
</div>
</div>
</div>
</div>
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336. Is e buidheann
carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an
Alba, àireamh clàraidh SC005336.
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Archivesspace_Users_Group mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a>
<a class="moz-txt-link-freetext" href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a>
</pre>
</blockquote>
</body>
</html>