Skip to main content
Known Participant
July 5, 2013
Question

How do I create a soft return (shift+Enter)?

  • July 5, 2013
  • 1 reply
  • 1778 views

FrameMaker 11

DITA 1.2

Is it possible using FM 11 and DITA 1.2 to use a soft return (as in Shift+Enter)? There are times when I want to avoid bad line breaks in a line of code or when I just want to keep a line with the previous line rather than having the extra space generated by a hard return.

Using a soft return disappears as soon as I save my file and reopen it. By "disappears" I mean it acts simply like a space rather than any type of return.

Thanks in advance,

Marsha

This topic has been closed for replies.

1 reply

ScottPrentice
Inspiring
July 5, 2013

Hi Marsha...

Use the following r/w rule to ensure that line breaks are preserved ..

element "codeblock"

{

  writer line break is 99999 characters;

  reader line break is forced return;

}

This rule is useful for "preformatted" elements (for code and such). The "writer" rule ensures that FM doesn't inadvertently wrap the line where it shouldn't be, and the "reader" rule translates line breaks into forced returns (SHIFT+ENTER).

You can use this reader rule in other types of elements as well .. although keep in mind that this won't prevent the line breaks form getting lost if the content is modified in another editor.

Note that DITA-FMx provides an option to preserve line breaks as a processing instruction, so this reader rule isn't necessary, and the line breaks are preserved in other environments (as long as they honor the PI).

Cheers,

...scott