If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Embedded HTML using and list numbers
I have a large document which I have split into more managable smaller docs
that contain embedded HTML tags to get some nice formaing (bold, italics, lists, etc). The problem I have having is that there is some lines within PRE/PRE tags nested in a list. For some reason Word2000 is adding each line as a list item. e.g. What I want is: a) Foo Some plain text lines in a fixed format within PRE/PRE b) Bar c) Wibble What I'm getting is: a) Foo b) Some plain c) text lines d) in a fixed format e) within PRE/PRE f) Bar g) Wibble Word97 does have this problem (just lots of others! ;-) Can anyone help! Cheers -- Martin |
#2
|
|||
|
|||
Embedded HTML using and list numbers
G'day "Martin Dowie" ,
Write your own find and replace to deal with the code. Steve Hudson - Word Heretic Want a hyperlinked index? S/W R&D? See WordHeretic.com steve from wordheretic.com (Email replies require payment) Martin Dowie reckoned: I have a large document which I have split into more managable smaller docs that contain embedded HTML tags to get some nice formaing (bold, italics, lists, etc). The problem I have having is that there is some lines within PRE/PRE tags nested in a list. For some reason Word2000 is adding each line as a list item. e.g. What I want is: a) Foo Some plain text lines in a fixed format within PRE/PRE b) Bar c) Wibble What I'm getting is: a) Foo b) Some plain c) text lines d) in a fixed format e) within PRE/PRE f) Bar g) Wibble Word97 does have this problem (just lots of others! ;-) Can anyone help! Cheers -- Martin |
#3
|
|||
|
|||
Embedded HTML using and list numbers
"Word Heretic" wrote in message
... Write your own find and replace to deal with the code. Sorry, I don't understand what you mean. I have lots of these lists and they don't have fixed values to search for i.e. "a)" isn't always "foo", "b)" isn't always "wibble". -- Martin |
#4
|
|||
|
|||
Embedded HTML using and list numbers
From your description, it is not really clear what you are starting with.
That makes it very had to help you get what you want out of it. -- Please post any further questions or followup to the newsgroups for the benefit of others who may be interested. Unsolicited questions forwarded directly to me will only be answered on a paid consulting basis. Hope this helps Doug Robbins - Word MVP "Martin Dowie" wrote in message ... "Word Heretic" wrote in message ... Write your own find and replace to deal with the code. Sorry, I don't understand what you mean. I have lots of these lists and they don't have fixed values to search for i.e. "a)" isn't always "foo", "b)" isn't always "wibble". -- Martin |
#5
|
|||
|
|||
Embedded HTML using and list numbers
"Doug Robbins - Word MVP" wrote in message
... From your description, it is not really clear what you are starting with. That makes it very had to help you get what you want out of it. ok, I'll try again :-) I have a word document that is basically made up of only section header 1. Introduction 1.1 Scope 1.2 Definitions, etc In each section there is a (link to) imported text file. The text file happens to contain HTML tags and Word was informed that it is to treat the file as HTML during the insertion of each file. 1. Introduction Introduction.html inserted here 1.1 Scope Scope.html inserted here 1.2 Definitions, etc Definitions.html inserted here, etc Within some of the .html file are lists (created using HTML tags) and PRE/PRE sections, such that the format we used to get using Word97 gave us the following (which is what we want): a) Foo Some lines enclosed by 'PRE' tags to ensure the same format is preserved. E.g. these strange looking lines. b) Bar c) Wibble But, by default, Word2000 thinks that each line is another item in the list, so gives: a) Foo b) Some lines c) enclosed by 'PRE' tags d) to ensure the same format e) is preserved. E.g. these strange looking lines. f) Bar g) Wibble Is that clearer? Cheers -- Martin |
#6
|
|||
|
|||
Embedded HTML using and list numbers
For the part that gives you a problem, what does the "raw" HTML look like.
Please give a real example, not: Some lines enclosed by 'PRE' tags to ensure the same format is preserved. E.g. these strange looking lines. -- Please post any further questions or followup to the newsgroups for the benefit of others who may be interested. Unsolicited questions forwarded directly to me will only be answered on a paid consulting basis. Hope this helps Doug Robbins - Word MVP "Martin Dowie" wrote in message ... "Doug Robbins - Word MVP" wrote in message ... From your description, it is not really clear what you are starting with. That makes it very had to help you get what you want out of it. ok, I'll try again :-) I have a word document that is basically made up of only section header 1. Introduction 1.1 Scope 1.2 Definitions, etc In each section there is a (link to) imported text file. The text file happens to contain HTML tags and Word was informed that it is to treat the file as HTML during the insertion of each file. 1. Introduction Introduction.html inserted here 1.1 Scope Scope.html inserted here 1.2 Definitions, etc Definitions.html inserted here, etc Within some of the .html file are lists (created using HTML tags) and PRE/PRE sections, such that the format we used to get using Word97 gave us the following (which is what we want): a) Foo Some lines enclosed by 'PRE' tags to ensure the same format is preserved. E.g. these strange looking lines. b) Bar c) Wibble But, by default, Word2000 thinks that each line is another item in the list, so gives: a) Foo b) Some lines c) enclosed by 'PRE' tags d) to ensure the same format e) is preserved. E.g. these strange looking lines. f) Bar g) Wibble Is that clearer? Cheers -- Martin |
#7
|
|||
|
|||
Embedded HTML using and list numbers
"Doug Robbins - Word MVP" wrote in message
... For the part that gives you a problem, what does the "raw" HTML look like. Please give a real example, not: OL TYPE=a LIBControl/BBR Refer to Structure Chart.BR BR LIBAlgorithm/BBR PRE // Assign each byte of the input 32 bit value // 31.. 24 | 23 .. 16 | 15 .. 8 | 7 .. 0 // Byte4 Byte 3 Byte 2 Byte 1 data_out : Uint8DataElement1 = (Uint8)(Float32DataElement & 0xFF) data_out : Uint8DataElement2 = (Uint8)((Float32DataElement >> 8) & 0xFF) data_out : Uint8DataElement3 = (Uint8)((Float32DataElement >> 16) & 0xFF) data_out : Uint8DataElement4 = (Uint8)((Float32DataElement >> 24) & 0xFF) /PREBR /OL The end of line is D:hex A:hex (LF/CR). Cheers -- Martin |
#8
|
|||
|
|||
Embedded HTML using and list numbers
On Wed, 26 May 2004 13:12:27 +0100, "Martin Dowie"
wrote: OL TYPE=a LIBControl/BBR Refer to Structure Chart.BR BR LIBAlgorithm/BBR PRE // Assign each byte of the input 32 bit value // 31.. 24 | 23 .. 16 | 15 .. 8 | 7 .. 0 // Byte4 Byte 3 Byte 2 Byte 1 data_out : Uint8DataElement1 = (Uint8)(Float32DataElement & 0xFF) data_out : Uint8DataElement2 = (Uint8)((Float32DataElement >> 8) & 0xFF) data_out : Uint8DataElement3 = (Uint8)((Float32DataElement >> 16) & 0xFF) data_out : Uint8DataElement4 = (Uint8)((Float32DataElement >> 24) & 0xFF) /PREBR /OL The end of line is D:hex A:hex (LF/CR). There are no closing /LI tags for your list items. With those tags, the html file imports the way you want. Without those tags, I get the problem you report. (Using Word 2003.) Even though it passes as valid HTML without those closing tags, apparently Word wants those tags. Microsoft has always been at odds with the HTML specs. See if this shortcut works for you: In your HTML files, replace PRE with /LIPRE |
#9
|
|||
|
|||
Embedded HTML using and list numbers
"CAndersen (Kimba)" wrote in message
s.com... The end of line is D:hex A:hex (LF/CR). There are no closing /LI tags for your list items. With those tags, the html file imports the way you want. Without those tags, I get the problem you report. (Using Word 2003.) Doh! Thanks - I'll go and try that. |
Thread Tools | |
Display Modes | |
|
|