Strange paragraph mark

V

viter.alex

I faced with paragraph mark that cannot be found with "^p" but can
with ^13. Why it happens?
 
V

viter.alex

I faced with paragraph mark that cannot be found with "^p" but can
with ^13. Why it happens?

One more point. Here is document example.
http://www.programmersforum.ru/attachment.php?attachmentid=13789&d=1247812274
It with cyrillic letters but it doesn't matter. In Immediate Window I
got:
?ActiveDocument.Paragraphs.Count
2
?ActiveDocument.Range.ComputeStatistics(wdStatisticLines)
3
But it's wrong! We can see 3 paragraphs and four lines in the document.
 
V

viter.alex

Let's continue experiments.
With «Find and Replace» Find: ^13:; Replace: ^13. Word says that he
did 3 replacements.

But
?ActiveDocument.Paragraphs.Count
1

What's going on?
 
T

Terry Farrell

Which version of Word? Is this all documents or just one particular
document? Did you create it from scratch or did you copy/paste text from the
Internet or was it a WordPerfect conversion?
 
K

Klaus Linke

Terry Farrell said:
Which version of Word? Is this all documents or just one particular
document? Did you create it from scratch or did you copy/paste text
from the Internet or was it a WordPerfect conversion?

Replace ^13 with ^p (and maybe ^10 with ^p too), save.
That sould fix it.

Usually, saving in *.doc format fixes it too.

BTW, the link to the sample file you gave requires a password.

Regards,
Klaus
 
K

Klaus Linke

viter.alex said:
New link to document
http://www.adrive.com/public/47cb78205e932e80f89bc255a25f6bc7804841a6b90267151129d9ecc52ba995.html

Word versions are 2003 and 2007.
Such documents appear from time to time. I cannot define the terms
under which it happens
It was created by copy/paste from different sources incl. Internet

Weird... It is the first time I've seen that the problem persists when you
save in *.doc or *.xml format.

The XML contains "<w:cr/>" ... Can't remember that I've seen that before
either.

Klaus
 
K

Klaus Linke

The XML contains "<w:cr/>" ... Can't remember that I've seen that before
either.

The documentation says <w:cr/> "specifies that this paragraph mark isn't a
paragraph mark -- it's just a
carriage return in the paragraph".
So it looks like it's something somebody (or some program) put in on
purpose.

I can't think of any way you can insert it from the user interface in Word
though.

Klaus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top