Skip to main content

Control Line Breaks in Inline Elements

Use the PDF layout to control how Paligo handles inline elements that cannot fit entirely on the same line. Depending on your choices, Paligo will either break the inline element over two lines, hyphenate it, or move the entire element on to the next line.

Note

For HTML, use CSS to control hyphenation and line breaks. To learn how to use and upload CSS, see Style with CSS.

  1. Select Layout in the top menu.

    Paligo editor. The Layout option in the header menu is highlighted.

    Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.

  2. Select the Layout you want to update or Create a Layout.

    Tip

    You can copy the URL of the Layout Editor and paste it into a new tab in your browser. This can be useful if you frequently switch between your Paligo content and the Layout settings.

  3. Select Inline elements and then the category for the type of inline element you want to style, for example, guilabel.

  4. Use the Allow Hyphenation for <inline element> setting to control whether Paligo hyphenates words in the element.

    Choose:

    • True

      Paligo will hyphenate a word, if needed. This means part of a word may appear on one line, with the rest of the word on the next line, with a hyphen at the break point.

    • False

      Paligo will not hyphenate words that cannot fit on a line. It will only show complete words on a line, and if a word does not fit, it will move to the next line. So if you have two words inside an inline element, the first word might be on one line and the second word on the next line.

  5. Use Keep <inline element> on one line to control how Paligo positions the entire element.

    Choose:

    • Yes

      Paligo will try to keep the entire inline element on the line where it is positioned. If it cannot fit on one line, the entire inline element is moved to the next line. This is true in most cases, but there are some exceptions where the inline element will break over two lines, such as if the inline element is too long for a table cell.

    • No

      Paligo will allow the inline element to break over two lines. It will either hyphenate the inline element or split the inline element over two lines, depending on the Allow hyphenation in <inline element> setting.

    • Always

      This option will set Paligo to always display the entire inline element on the line where it is positioned. This can mean that the inline element extends beyond the body area of the page. Typically, this option is not used, but it is included for special cases.

  6. Select Save. Save icon.

When you publish using this layout, Paligo will apply the styling to the appropriate elements.

To learn about the other settings for PDF inline elements, see Inline Element Styling (PDF).