Rich text field + carbone print results in failed text wrapping
There seems to be an issue with the text wrapping in a carbone print that has appeared since the latest update.
In Ninox I have a Richt Text field set to Field Type "Rich Text"
In the Carbone template I have set it to html ({d.paragraph:html}). I have tested in both the integrated print (uploading a word template + custom JSON) and the Carbone API (hosting the template on Carbone).
Here is some example text in the Ninox field:
Here is what the carbone template looks like:
And here is the result (see the "Uruguay" in the table and the "and" from the first line in the normal text):
Has anyone come across this issue and maybe a workaround? Or is there something I am not seeing. I tested it out on some old text I had. It works perfectly on older text (if I reprint, the text wrapping is still fine), but as soon as I update the field, the text wrapping is broken. I have review the before/after JSON data that is sent to the API and it is identical.
I've sent an email to support and hopefully they will get back to me.
4 replies
-
Interesting. I tried it within Carbone Studio and I got a different printout then when I did it through Ninox.
Carbone Studio:
Ninox:
I used the following Ninox code to build a JSON:
{ paragraph: raw('Rich text') }
So it will be interesting to see what Ninox says.
-
I got the following reply from support:
Our developer has identified the root cause of the print output issue you reported.
The problem is caused by non-breaking space characters (U+00A0) embedded within your HTML content. These non-breaking spaces are preventing proper line wrapping in the print output.
This issue occurs in Ninox versions 3.14, 3.15, and 3.16.
Specifically, the HTML you are using includes styled
<p>
and<span>
tags that contain these non-breaking spaces, which leads to the wrap failures.As a workaround, please try removing the non-breaking spaces from your HTML content. This should resolve the wrapping problem.
I don't see any way of removing the non-breaking space as it is automatically embedded by the rich text editor. The formula editor cannot distiguish between the space types so I cannot replace the spaces.
I've asked support for further clarification but if anyone has any suggestions, I would love to hear them. I am suppose to release a large number of reports today but cannot due to this errror.
-
I found a workaround. I originally copied a non-breaking space from some website and used it with replace which didn’t work. But then I copied the non-breaking space from somewhere else and it worked this time.
Effectively:
let nbsp := " "; paragraph: replace(raw(Paragraph), nbsp, " ")
Make sure the non-breaking space is correct and this will resolve the issue until Ninox push an update.
Content aside
- Status Answered
- 2 days agoLast active
- 4Replies
- 39Views
-
2
Following