Hi,
I came to a problem when building my site. I git some pages where I like to show LaTeX code. I use a structured field but entries like \newline
(which is a common LaTeX macro don’t get saved properly, i.e. the \n
is cut of and interpreted as new line control sequence.
How to reproduce:
-
download starter kit
-
add the following field to
blueprints/default.php
test: label: Test-Field type: structure entry: {{text}} fields: text: label: Text type: text
-
go to the panel
-
edit a default page
-
add a new entry to the structure field
-
type in
\newline
and click “Add” -
save the page
Result: The entry is saved as ewline
…
I also created an issue on GitHub but since this is quite urgent I hope it’s ok to ask here too …