> It's noteworthy that ncdump renders an embedded newline as '\n' followed by 
> an actual newline.

Thank you for the clarification.

>  when I'm adding embedded newline characters to long strings in NCL, I just 
> add a newline, not an escape sequence

Interesting. I tried a few different ways of embedding the newline in Julia but 
they haven't worked so far. It looks like NCAR uses [CRLF for newlines][1], but 
even Julia's `'\r\n'` doesn't seem to work. I can use raw strings:

```
s = """foo
bar"""
```

but Julia always puts `'\n'` at the line endings. I was as yet unable to find 
the actual definition of that `BR` symbol in the NCAR sources, if anyone could 
point me to where the string ops are defined I could take a look, although I'll 
be going in blind with C/fortran.

Alternatively I could check the ncdump sources for the line splitting logic...

[1]: 
https://urldefense.us/v3/__https://github.com/likev/ncl/blob/49a124bbfc0247a6a8768e9c5084c18fc2207d1e/ncl_ncarg_src/ni/src/ncl/editline.c*L72__;Iw!!G2kpM7uM-TzIFchu!kNlI_g1QCIsZLT83JLXNCGj1Amo4ECQJLC6O4xeDvuNlseZ6k6EKmL5vb2oPPwALaCEyEtfQPew$
 


-- 
Reply to this email directly or view it on GitHub:
https://urldefense.us/v3/__https://github.com/cf-convention/cf-conventions/issues/347*issuecomment-1009406130__;Iw!!G2kpM7uM-TzIFchu!kNlI_g1QCIsZLT83JLXNCGj1Amo4ECQJLC6O4xeDvuNlseZ6k6EKmL5vb2oPPwALaCEy5j27QkY$
 
You are receiving this because you are subscribed to this thread.

Message ID: <cf-convention/cf-conventions/issues/347/[email protected]>
This list forwards relevant notifications from Github.  It is distinct from 
[email protected], although if you do nothing, a subscription to the 
UCAR list will result in a subscription to this list.
To unsubscribe from this list only, send a message to 
[email protected].

Reply via email to