Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Word / November 2005



Tip: Looking for answers? Try searching our database.

remove space at beginning of lines

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gwh@officelinkonline.com.au - 12 Nov 2005 06:23 GMT
Hi everyone,

I wondered if anyone could tell me if there was some way to
automatically remove a space that appears at the beginning of each line
in a Word document I have. I understand that you can use find and
replace but this method doesn't let you specify which space you want
removed. Is there some other way - perhaps a macro or something?

Would appreciate any tips offered.
Michel Bintener - 12 Nov 2005 10:08 GMT
Hi,
if you turn on the invisible characters (by clicking the inverted P "¶" on
the toolbar or by hitting Cmd+8), is there actually a paragraph mark (again,
an inverted P "¶") at the end of each line, i.e. before the additional space
in the next line? If so, in the Find and Replace, tell Word to find
"^p[Space]" (no quotation marks, and an actual space instead of [Space]),
and to replace it with "^p" (again, no quotation marks). "^p" tells Word to
look for paragraph marks, so it will look for paragraph marks followed by a
space and replace it with a simple paragraph mark.

If that doesn't help, post back and give more details about the structure of
your document.

On 12.11.05 6:23, in article
1131776592.150281.210160@g44g2000cwa.googlegroups.com,

> Hi everyone,
>
[quoted text clipped - 5 lines]
>
> Would appreciate any tips offered.
John McGhie [MVP - Word and Word Macintosh] - 12 Nov 2005 10:51 GMT
Check in the Word Help under " Advanced search methods" for "Wildcard
Characters".

That's what you want to use.

Before we begin, note that Word documents have lines and paragraphs.  You
can find the beginning of a paragraph, and you can find the beginning of a
manual line break.

You can't find the beginning of the soft line breaks inserted by
autowrapping (because they are not characters, there's nothing in the
document to search for!).  This is not usually a problem :-)

If by "line" you meant "Paragraph", search for '^p '    and replace with
{nothing}.  That search is three characters: a caret, the lower-case letter
p, and a space.  No quotes.  You replace that with "nothing" (not a
"space").

If by "line" you meant "manually-created or hard line-breaks", then you
search for "^l " instead.  That's caret, lower-case l, space.  The caret
character stands for "control" or "escape" and tells Word that the next
character is a control character and not something you want to find.

Cheers

On 12/11/05 5:23 PM, in article
1131776592.150281.210160@g44g2000cwa.googlegroups.com,

> Hi everyone,
>
[quoted text clipped - 5 lines]
>
> Would appreciate any tips offered.

Signature

Please reply to the newsgroup to maintain the thread.  Please do not email
me unless I ask you to.

John McGhie <john@mcghie.name>
Microsoft MVP, Word and Word for Macintosh.  Consultant Technical Writer
Sydney, Australia +61 4 1209 1410

Klaus Linke - 12 Nov 2005 13:02 GMT
A quick method if all your text is left-aligned (or justified):

Select all (Ctrl+A), then click the "Center" button (or Ctrl+E).
That'll strip all whitespace from the beginning and end of paragraphs.
Then reapply the proper justification.

Regards,
Klaus

> Hi everyone,
>
[quoted text clipped - 5 lines]
>
> Would appreciate any tips offered.
Paul Berkowitz - 13 Nov 2005 02:16 GMT
In Word Mac, Klaus means cmd-A and cmd-E respectively.

Signature

Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X  or 2001. It's often impossible to answer your questions
otherwise.

> From: Klaus Linke <info@fotosatz-kaufmann.de>
> Newsgroups: microsoft.public.mac.office.word
[quoted text clipped - 19 lines]
>>
>> Would appreciate any tips offered.
gwh@officelinkonline.com.au - 15 Nov 2005 03:28 GMT
Thanks everyone for all the great advice!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.