cbordey Posted October 27, 2020 Posted October 27, 2020 I received a document where there is a single space in front of each new paragraph. Is there a way to get rid of these automatically rather than hitting backspace at the start of each paragraph? I googled it and found this formula: ^\s+? but I'm assuming it's for Indesign as it didn't work in Publisher. Thanks! Quote
Pšenda Posted October 27, 2020 Posted October 27, 2020 cbordey and Alfred 2 Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.
h_d Posted October 27, 2020 Posted October 27, 2020 If you're having to press backspace to close up the gaps, the chances are that there are extra return characters between the paragraphs. To check this, pull down the Text menu and choose Show Special Characters: This will display paragraph breaks as a sort of reversed P:: One at the end of each paragraph, one in between. To remove them quickly, do a Find and Replace (Cmd-F on Mac, probably Ctrl-F on PC). In the Find box, click the magnifying glass and choose Special Characters - Paragraph Break: . Do this once again in the Find box, and just once in the Replace box, then double-click in the Find box to show results:: Then click Replace All: This has removed my double paragraph breaks, but I still have space between the paragraphs because my text styles are set up that way. If you need to remove more space, or the above doesn't work, post back. Cheers, H cbordey 1 Quote Affinity Photo 2.6.3, Affinity Designer 2.6.3 Affinity Publisher 2.6.3, Mac OSX 15.5, 2018 MacBook Pro 15" Intel.
Pšenda Posted October 27, 2020 Posted October 27, 2020 18 minutes ago, h_d said: This has removed my double paragraph breaks That's nice, but OP needs something completely different. 4 hours ago, cbordey said: a single space in front of each new paragraph The mentioned regex command works reliably for this. Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.
h_d Posted October 27, 2020 Posted October 27, 2020 16 minutes ago, Pšenda said: That's nice, but OP needs something completely different. The mentioned regex command works reliably for this. Quote Affinity Photo 2.6.3, Affinity Designer 2.6.3 Affinity Publisher 2.6.3, Mac OSX 15.5, 2018 MacBook Pro 15" Intel.
John Rostron Posted October 27, 2020 Posted October 27, 2020 53 minutes ago, h_d said: This will display paragraph breaks as a sort of reversed P:: This 'reversed P' is know as a Pilcrow. John Alfred 1 Quote Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050
cbordey Posted October 31, 2020 Author Posted October 31, 2020 Yes, it worked! Thanks @Pšenda, you just saved me a boatload of time and headache!! @h_dI'm sure you're tips will come in handy as well as I move through this project! h_d 1 Quote
Pšenda Posted October 31, 2020 Posted October 31, 2020 You are welcome. Quote Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail) Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605. Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.
h_d Posted October 31, 2020 Posted October 31, 2020 No probs @cbordey, sorry I misunderstood your original post. Quote Affinity Photo 2.6.3, Affinity Designer 2.6.3 Affinity Publisher 2.6.3, Mac OSX 15.5, 2018 MacBook Pro 15" Intel.
Recommended Posts
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.