CPHennessy typed the following on 6/25/2006 6:45 PM:
On Sun June 25 2006 19:57, Donald H Locker wrote:
If I'm getting into hacking the contents, I usually first
use emacs
M-x query-replace-regular-expression \(<\([^/][^>]\)*/> C-q
C-j \1 C-q C-j
and
M-x query-replace-regular-expression \(<\([^ ]+\)
.*</\2[^>]+>\) C-q C-j \1 C-q C-j
to break things up a bit. The first replacement puts each
"self-terminated" element on a line by itself.
The second chunks <something.....</somthing...> onto their
own lines.
There is no need to do this if you turning off the "Size
optimisation for XML" option in "Tools" -> "Options" ->
"Load/Save" -> "General" Also the file is then more than just
2 lines.
Much prettier!
Nonetheless, to open 42 files and do a query-replace in each is
more work than this deserves.
If there's no way to attack this with Writer, I'm going to look
for an OCR program that does what I want.
Thanks.
--
Pete Holsberg
Columbus, NJ
"Only a mediocre person is always at his best."
-- W. Somerset Maugham
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.3/374 - Release Date: 6/23/2006
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]