PC Review


Reply
Thread Tools Rate Thread

Changing blanks to paragraphs when pasting

 
 
=?Utf-8?B?Y3liZXJ2aWdpbGFudGU=?=
Guest
Posts: n/a
 
      12th Oct 2004
When I paste text the blank lines are showing up as those two down pointing
arrows instead of paragraph marks, that you get by hitting Shift-Enter -
which means FP recognizes the entire paste as one paragraph. I want to
convert all the blank lines to double paragraph marks so I can format each
one independently, such a for headers - but I can't seem to do it except
very tedious manual replacement. U tried search and replace using regular
expressions, but nothing seems to work, although I may have the symbol for
downpointing arrows wrong. I know para is \n

Jim
--
www.corporatecrimefighters.com
 
Reply With Quote
 
 
 
 
Ronx
Guest
Posts: n/a
 
      12th Oct 2004
When pasting from Notepad to FrontPage text is normally pasted as one
paragraph with line breaks creating new lines.
In FrontPage 2003, and probably other versions, with the page open in Design
(Normal) view, use Edit->Paste Special and choose Normal Paragraphs from
the list of options.
The text will be pasted as paragraphs, with no line breaks.

In an HTML page, paragraphs are text contained in <p>..</p> tags, as in
<p>...some paragraph text...</p>
there may not be an actual carriage return, but the browser will render the
paragraph as though there were. The browser renders carriage returns as
spaces, so these are not visible when the page is displayed.
Line breaks (the two down pointing arrows) are rendered with <br> tags, as
in

here is some text<br>This text appears to be on the next line.

Again, notice the lack of carriage returns.

To convert text with line breaks to paragraphs do a search and replace in
FrontPage, in HTML or Code view, Search for <br> and replace it with
</p><p>
The first and last line *may* have to be manually corrected - <p> added to
the first line, and the last <p> removed, though when pasting text from
Notepad these may already be correct.

--
Ron Symonds (Microsoft MVP - FrontPage)

Reply only to group - emails will be deleted unread.
"cybervigilante" <(E-Mail Removed)> wrote in message
news:21A4E015-BE3F-4A46-935F-(E-Mail Removed)...
> When I paste text the blank lines are showing up as those two down
> pointing
> arrows instead of paragraph marks, that you get by hitting Shift-Enter -
> which means FP recognizes the entire paste as one paragraph. I want to
> convert all the blank lines to double paragraph marks so I can format
> each
> one independently, such a for headers - but I can't seem to do it except
> very tedious manual replacement. U tried search and replace using regular
> expressions, but nothing seems to work, although I may have the symbol for
> downpointing arrows wrong. I know para is \n
>
> Jim
> --
> www.corporatecrimefighters.com



 
Reply With Quote
 
=?Utf-8?B?Y3liZXJ2aWdpbGFudGU=?=
Guest
Posts: n/a
 
      12th Oct 2004
Okay, that worked, kind of. I wanted to replace multiple adjacent <br>s with
One <p> mark in Code View using regular expressions, and tried this:

Find: (<br>)+ Replace with: <p></p>

The problem is, I got as many consecutive <p>s as breaks. Five breaks made
five paragraph marks. They only shows up as one line on the browser of
course, but it does bloat the code. I'm certain the + should mean any number
of occurrences of the <br> should be replaced with One para. Am I doing this
wrong or is this an FP bug?

"Ronx" wrote:

> When pasting from Notepad to FrontPage text is normally pasted as one
> paragraph with line breaks creating new lines.
> In FrontPage 2003, and probably other versions, with the page open in Design
> (Normal) view, use Edit->Paste Special and choose Normal Paragraphs from
> the list of options.
> The text will be pasted as paragraphs, with no line breaks.
>
> In an HTML page, paragraphs are text contained in <p>..</p> tags, as in
> <p>...some paragraph text...</p>
> there may not be an actual carriage return, but the browser will render the
> paragraph as though there were. The browser renders carriage returns as
> spaces, so these are not visible when the page is displayed.
> Line breaks (the two down pointing arrows) are rendered with <br> tags, as
> in
>
> here is some text<br>This text appears to be on the next line.
>
> Again, notice the lack of carriage returns.
>
> To convert text with line breaks to paragraphs do a search and replace in
> FrontPage, in HTML or Code view, Search for <br> and replace it with
> </p><p>
> The first and last line *may* have to be manually corrected - <p> added to
> the first line, and the last <p> removed, though when pasting text from
> Notepad these may already be correct.
>
> --
> Ron Symonds (Microsoft MVP - FrontPage)
>
> Reply only to group - emails will be deleted unread.
> "cybervigilante" <(E-Mail Removed)> wrote in message
> news:21A4E015-BE3F-4A46-935F-(E-Mail Removed)...
> > When I paste text the blank lines are showing up as those two down
> > pointing
> > arrows instead of paragraph marks, that you get by hitting Shift-Enter -
> > which means FP recognizes the entire paste as one paragraph. I want to
> > convert all the blank lines to double paragraph marks so I can format
> > each
> > one independently, such a for headers - but I can't seem to do it except
> > very tedious manual replacement. U tried search and replace using regular
> > expressions, but nothing seems to work, although I may have the symbol for
> > downpointing arrows wrong. I know para is \n
> >
> > Jim
> > --
> > www.corporatecrimefighters.com

>
>
>

 
Reply With Quote
 
Ronx
Guest
Posts: n/a
 
      12th Oct 2004
Probably No to both questions - it's the data that's wrong

Find and replace (<br>)+ will find 1 or more <br> sequences and replace
all found *provided* the sequences are not split by any other character,
such as a carriage return.
So <br><br><br> would be replaced by </p><p>
whereas
<br>
<br>
<br>
would be replaced by
</p><p>
</p><p>
</p><p>

Here I would search for <p>\n</p> and replace with nothing.

--
Ron Symonds (Microsoft MVP - FrontPage)

Reply only to group - emails will be deleted unread.


"cybervigilante" <(E-Mail Removed)> wrote in message
news:3972D809-38CB-4097-8940-(E-Mail Removed)...
> Okay, that worked, kind of. I wanted to replace multiple adjacent <br>s
> with
> One <p> mark in Code View using regular expressions, and tried this:
>
> Find: (<br>)+ Replace with: <p></p>
>
> The problem is, I got as many consecutive <p>s as breaks. Five breaks made
> five paragraph marks. They only shows up as one line on the browser of
> course, but it does bloat the code. I'm certain the + should mean any
> number
> of occurrences of the <br> should be replaced with One para. Am I doing
> this
> wrong or is this an FP bug?
>
> "Ronx" wrote:
>
>> When pasting from Notepad to FrontPage text is normally pasted as one
>> paragraph with line breaks creating new lines.
>> In FrontPage 2003, and probably other versions, with the page open in
>> Design
>> (Normal) view, use Edit->Paste Special and choose Normal Paragraphs from
>> the list of options.
>> The text will be pasted as paragraphs, with no line breaks.
>>
>> In an HTML page, paragraphs are text contained in <p>..</p> tags, as in
>> <p>...some paragraph text...</p>
>> there may not be an actual carriage return, but the browser will render
>> the
>> paragraph as though there were. The browser renders carriage returns as
>> spaces, so these are not visible when the page is displayed.
>> Line breaks (the two down pointing arrows) are rendered with <br> tags,
>> as
>> in
>>
>> here is some text<br>This text appears to be on the next line.
>>
>> Again, notice the lack of carriage returns.
>>
>> To convert text with line breaks to paragraphs do a search and replace in
>> FrontPage, in HTML or Code view, Search for <br> and replace it with
>> </p><p>
>> The first and last line *may* have to be manually corrected - <p> added
>> to
>> the first line, and the last <p> removed, though when pasting text from
>> Notepad these may already be correct.
>>
>> --
>> Ron Symonds (Microsoft MVP - FrontPage)
>>
>> Reply only to group - emails will be deleted unread.
>> "cybervigilante" <(E-Mail Removed)> wrote in
>> message
>> news:21A4E015-BE3F-4A46-935F-(E-Mail Removed)...
>> > When I paste text the blank lines are showing up as those two down
>> > pointing
>> > arrows instead of paragraph marks, that you get by hitting
>> > Shift-Enter -
>> > which means FP recognizes the entire paste as one paragraph. I want to
>> > convert all the blank lines to double paragraph marks so I can format
>> > each
>> > one independently, such a for headers - but I can't seem to do it
>> > except
>> > very tedious manual replacement. U tried search and replace using
>> > regular
>> > expressions, but nothing seems to work, although I may have the symbol
>> > for
>> > downpointing arrows wrong. I know para is \n
>> >
>> > Jim
>> > --
>> > www.corporatecrimefighters.com

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002: How to avoid pasting blanks ? =?Utf-8?B?TXIuIExvdw==?= Microsoft Excel Misc 3 15th Sep 2007 02:17 AM
Pasting Blanks using a macro TTomSawyer Microsoft Excel Programming 5 16th Aug 2005 04:37 PM
Finding, cutting and pasting multiple words and paragraphs with ma =?Utf-8?B?TmV4YW4=?= Microsoft Word Document Management 6 2nd Mar 2005 05:49 PM
paste new over existing data without pasting blanks? judoist Microsoft Excel Discussion 1 15th Jun 2004 11:56 PM
Pasting paragraphs into FP Terry Pinnell Microsoft Frontpage 2 25th Nov 2003 08:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:09 PM.