Using $transclude vs $view to view multi-line field content

I have used the $edit-text widget to enter some text with paragraphs into a field.

I note that when I use the $transclude widget to view the field’s content the paragraph formatting is preserved; whereas when I use the $view widget it is not.

Out of interest is there an alternative to using the $transclude widget which would display the field content with paragraph formatting preserved?

Cheers, Rob

(You seem to get your references mixed up in the above paragraphs?)
Anyway:

  1. Note the $mode=block attribute in the Transcludewidget
  2. Block elements typically need to be preceded by an empty row to preserve block mode

Hi Rob,
What’s wrong with transclusion?

The view-widget has a different purpose. It’s mainly used to be able to save TW.

There is the wikify-widget, but this one can have a big performance hit. It should only be used, if there is no other possibility.

:thinking:
  

OK bad wording. It is mainly used in templates. It happens that saving TW as file is done with templates.

If you search “$view” in the AdvancedSearch → Shadows tab, you will see, what I mean. It mainly lists templates.

That’s interesting.

Regardless, I think Rob is asking about how to “preserve paragraph block formatting” however it is culled.