4D Blog

Home Product Better documents with two new attributes

Better documents with two new attributes

November 16, 2018

Product

To produce a nice document, you need to respect some typesetting rules and fundamentals. For example, the grammar, spelling, and structure of your document shows the quality of your text. One of these rules concerns the distribution of paragraphs and tables over multiple pages.

4D Write Pro offers you two options to manage paragraph distribution:

  • Avoid page break inside paragraphs or tables, and
  • Avoid widows and orphans for paragraphs or tables.

 

Let’s dig into more details.

Avoid page break inside paragraph or table

This option is useful when you don’t want a paragraph, several paragraphs or a table to break across two pages.

   New attribute

A new attribute is available: wk page break inside. The available values are wk avoid or wk auto.

WP SET ATTRIBUTE($range; wk page break inside; wk avoid)

Automatic page break

Avoid page break inside

blank

This option was already accessible via the contextual menu and the avoidPageBreakInsideEnabled standard action.

Avoid widows and orphans

   What are widows and orphans?

In typesetting, widows and orphans are the lines at the beginning or end of a paragraph which are left all by themselves at the top or bottom of a page. They can create a visual interruption in the flow of reading that breaks the reader’s focus. That’s why they should be avoided.

  • Widow: A paragraph-ending line that is displayed at the beginning of the following page.
  • Orphan: A paragraph-opening line that appears by itself at the bottom of a page.

 

  New attribute

With the WP SET ATTRIBUTES command, you have a new attribute: wk avoid widows and orphans. The available values for this attribute are wk true or wk false. 

When this attribute is set for a paragraph or a table, 4D Write Pro prevents this paragraph or table from having a single line separated onto another page.

WP SET ATTRIBUTE($range; wk avoid widows and orphans; wk true)

You can see the difference in the screenshots below:

Allow widows and orphans

blank

Avoid widows and orphans

blank

Again, this option was already accessible via the contextual menu and the widowAndOrphanControlEnabled standard action.

 

Discuss

Tags 4D Write Pro, Programming, v17 R3, v18

Latest related posts

  • December 3, 2025

    Give AI to a 30 years old 4D application

  • November 28, 2025

    ORDA – Handle an event-driven logic during database operations

  • November 27, 2025

    ORDA – Permissions – Restrict / allow web access to the resources in one click

Vanessa Talbot
Vanessa Talbot
• Product Owner •Vanessa Talbot joined 4D Program team in June, 2014. As a Product Owner, she is in charge of writing the user stories then translating it to functional specifications. Her role is also to make sure that the feature implementation delivered is meeting the customer need.Since her arrival, she has worked to define key features in 4D. She has worked on most of preemptive multi-threading new features and also on a very complex subject: the new architecture for engined application. Vanessa has a degree from Telecom Saint-Etienne. She began her career at the Criminal Research Institute as a developer for the audiovisual department. She has also worked in media and medical fields as expert in technical support, production as well as documenting new features.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy