Jump to content
You must now use your email address to sign in [click for more info] ×

Can you automate the deletion of extra spaces and the creation of indents?


Recommended Posts

Is there any way to automate the deletion of extra spaces between paragraphs or the creation of indents in front of paragraphs? It would take me at all day to do it manually with this 300-page text file I've got to get into Publisher, and I'd love to find a shortcut. Whether it's something I can do inside Publisher or something I need to find externally, it would be worth my time. See attached file for the current situation. 

 

 

Screen Shot 2020-05-28 at 3.31.48 PM.png

Link to comment
Share on other sites

Try the find & replace panel for empty lines in paragraphs, search for two empty lines and replace with one etc. AFAI recall APub also can deal with regular expressions so should be easy to setup to match empty lines for both the find and replace part. - See also ...

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

@AntiqueFlaneurAre you already using text styles for the body paragraphs?  By selecting all the text and assigning a style, you can then change the properties on the style and it will automatically propagate to all the styled paragraphs.  So clean up any extraneous extra paragraph marks as has already been suggested.  Then control the inter-paragraph spacing and indenting in just one place, by editing the properties of one text style.

Link to comment
Share on other sites

1 hour ago, sfriedberg said:

@AntiqueFlaneurAre you already using text styles for the body paragraphs?  By selecting all the text and assigning a style, you can then change the properties on the style and it will automatically propagate to all the styled paragraphs.  So clean up any extraneous extra paragraph marks as has already been suggested.  Then control the inter-paragraph spacing and indenting in just one place, by editing the properties of one text style.

There are no extra paragraph marks as far as I can tell by turning on special characters. And I just looked at the paragraph styles inter-paragraph spacing and indenting and it seems like they are both set to zero. What am I missing?

Screen Shot 2020-05-28 at 7.46.24 PM.png

Link to comment
Share on other sites

You want to assign a text style (Body is just fine) to all the paragraphs.  Then edit the properties of the text style.  Don't open the Paragraph tab that you show in that image.  Go to the Text Styles panel.  Select the particular style, right-click and choose Edit "Style Name".  In the dialog that appears, about half-way down the list on the left, choose Paragraph > Spacing.  The right side of the dialog will change to show you the available settings.  Most of them are probably [No Change] at the moment.

To get you started, set Space Before and Space After to 0 pts, and set First Line Indent to 0.25in. As you enter each field, you should see the text in the main view behind the dialog change in response.  All the paragraphs assigned that particular style will respond in unison, unless you have manually overridden the assigned style with Character or Paragraph properties.  The plus mark in "Body+" indicates the presence of some kind of override.

By the way, the Paragraph tab you show in that image has 12 points of space after each paragraph.

Link to comment
Share on other sites

@AntiqueFlaneur There was an extraneous line break at the end of the first paragraph immediately before the paragraph break, and an extraneous paragraph break between the 2nd and 3rd paragraphs.  Once I got rid of those, I selected all the text, most of which had the "normal" style applied, and (re)applied the "Body" text style. Voilà!

FOFCLayout_modified.afpub

Link to comment
Share on other sites

10 hours ago, sfriedberg said:

@AntiqueFlaneur There was an extraneous line break at the end of the first paragraph immediately before the paragraph break, and an extraneous paragraph break between the 2nd and 3rd paragraphs.  Once I got rid of those, I selected all the text, most of which had the "normal" style applied, and (re)applied the "Body" text style. Voilà!

FOFCLayout_modified.afpub

Thanks so much! 

When you say, "I selected the text," is there some sort of "select all" function that covers not only the current text box, but all the linked text boxes so you don't have to go through page by page?

Link to comment
Share on other sites

1 minute ago, AntiqueFlaneur said:

Thanks so much! 

When you say, "I selected the text," is there some sort of "select all" function that covers not only the current text box, but all the linked text boxes so you don't have to go through page by page?

Put your text caret in the text and use Command + A to select all (probably Control + A on Widows)

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

  1. Select all the text;
  2. Open Paragraph panel;
  3. Open the Spacing tab;
  4. Inset 0 on all empty boxes.

All the latest releases of Designer, Photo and Publisher (retail and beta) on MacOS and Windows.
15” Dell Inspiron 7559 i7 Windows 10 x64 Pro Intel Core i7-6700HQ (3.50 GHz, 6M) 16 GB Dual Channel DDR3L 1600 MHz (8GBx2) NVIDIA GeForce GTX 960M 4 GB GDDR5 500 GB SSD + 1 TB HDD UHD (3840 x 2160) Truelife LED - Backlit Touch Display
32” LG 32UN650-W display 3840 x 2160 UHD, IPS, HDR10 Color Gamut: DCI-P3 95%, Color Calibrated 2 x HDMI, 1 x DisplayPort
13.3” MacBook Pro (2017) Ventura 13.6 Intel Core i7 (3.50 GHz Dual Core) 16 GB 2133 MHz LPDDR3 Intel Iris Plus Graphics 650 1536 MB 500 GB SSD Retina Display (3360 x 2100)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.