Daniel Lewis - [email protected] wrote:
Michael Adams wrote:
On Thursday 08 April 2010 06:40, Dotan Cohen wrote:
Every line in your example document is a new paragraph. To see that
more
clearly, click open the "View" and choose "Non-printing Characters".
New
paragraphs are then marked with a symbol which looks like a
backwards "P"
(also spaces show as a dot, and tabs as a right-pointing arrow).
To start a new line without starting a new paragraph, hold the Shift
key
when pressing Enter, instead of just pressing Enter (with Non-printing
Characters shown, you see an arrow pointing down then left as is common
on the Enter key). The options for widow and orphan control or keep
paragraphs together then work. You might then want to change the
"Indents
and Spacing" paragraph options to remove the indent.
(snip)
Thanks, Mark. That text was copied and pasted from a website. Is there
a way to convert all the New Paragraph marks to New Line marks? I
tried to do the same conversion once and failed to find a way, but
maybe it does exist.
I think this is bad advice, effectively changing the document to one
paragraph
just does not sound right to me.
I think the idea is to put each verse of the song lyrics into a separate
paragraph, but with line breaks at the end of each line. Making the
whole document into a single paragraph certainly wouldn't help.
(snip)
Suggestion for converting the "each line is a paragraph" into the
original paragraph setup:
1) Go through the text placing a # after the punctuation mark at the end
of each paragraph.
2) Open Find (Control+F).
3) Enter $ in the Search box and # in the Replace box.
4) Click More options button.
5) Click the Regular Expression box.
6) Click the Replace all. Now you have one paragraph with the #'s
showing where each paragraph ends.
7) Replace $ with # in the Search box and replace # with \n in the
Replace box.
8) The Regular Expression box should be checked (ticked).
9) Click Replace all.
Now you should have your paragraphs looking like they did on the web
page. The suggestions about orphan and widow paragarphs should no work
as well.
Dan
But while a \n in the Find box matches a *line* break, in the Replace
box it inserts a *paragraph* break. Doesn't make sense to me either, but
it's well documented in the help and on the Wiki, so is presumably the
way it's supposed to be. I came across similar tricks with regular
expressions which almost get there, but unless there is a way to insert
a line break in the Replace text, I don't think anything is going to
completely do it. It does seem strange that it's possible to find a line
break, but not insert one as a replacement.
Mark.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]