Quantcast
Channel: Adobe Community : Popular Discussions - FrameMaker Structured
Viewing all articles
Browse latest Browse all 66580

Codeblock Element: How do I make it so when I press enter, it doesn'insert another codeblock elem?

$
0
0

FM 11

DITA 1.2

 

Currently when I'm entering text in the <codeblock> element, it inserts another <codeblock> element every time I press Enter, like this:

<codeblock> This is the first line. </codeblock>

<codeblock> This is the second line. </codeblock>

<codeblock> This is the third line. </codeblock>

 

I want it to preserve line breaks like this:

<codeblock> This is the first line.

This is the second line.

This is the third line. </codeblock>

 

The r/w rule for the codeblock are as follows:

element "codeblock" {

  preserve line breaks;

  }

 

In my template, in the Paragraph Designer, I have tried setting the Next Pgf Tag as Body and as CodeBlock.

 

My EDD(s) are set to use the CodeBlock paragraph format.

 

What simple thing am I missing?

 

Marsha


Viewing all articles
Browse latest Browse all 66580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>