Re: Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Jeremy H. Griffith
On Mon, 17 Nov 2008 10:55:48 -0500, Jim Owens <[EMAIL PROTECTED]> wrote: >What I want to do is take some text that appears early in the paragraph, >and convert it to a link in an MS HTML Help "Related Topic" button. As >part of this, I have to provide text for the link. My problem is that >the

Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Jeremy H. Griffith
On Mon, 17 Nov 2008 10:55:48 -0500, Jim Owens wrote: >What I want to do is take some text that appears early in the paragraph, >and convert it to a link in an MS HTML Help "Related Topic" button. As >part of this, I have to provide text for the link. My problem is that >the text contains CRLF

Mif2Go: removing CRLF from CodeStore content: Workaround

2008-11-17 Thread Jim Owens
The {HTMLOptions} setting NoWrap=Yes prevents newline characters from being included in output paragraphs. THis solves the problem for the Related Topics links. Is there any risk that some paragraphs in the Frame source will be too long for the CHM browser to handle? Jim Owens wrote: > For "e

Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Jim Owens
For "early in the paragraph", please read "early in the topic." Jim Owens wrote: > Thanks. I can't find anything about "CodeSource" in the manual. In the > [HtmlStyles] section, I can assign pre or blockquote to the paragraph > format; this changes the paragraph tag in the output from to , >

Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Jim Owens
Thanks. I can't find anything about "CodeSource" in the manual. In the [HtmlStyles] section, I can assign pre or blockquote to the paragraph format; this changes the paragraph tag in the output from to , for example. If I recall, this would cause the browser to honour any CRLFs in the paragrap

Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Art Campbell
I don't have M2G on this system, so I can't check this, but I'm half-remembering that if you set up the CodeSource to output as either Blockquote, Preformatted, or Code that this won't happen, but I'm not remembering how to turn this off for other formats. Art Art Campbell

Re: Mif2Go: removing CRLF from CodeStore content: Workaround

2008-11-17 Thread Jim Owens
The {HTMLOptions} setting NoWrap=Yes prevents newline characters from being included in output paragraphs. THis solves the problem for the Related Topics links. Is there any risk that some paragraphs in the Frame source will be too long for the CHM browser to handle? Jim Owens wrote: > For "e

Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread JIm Owens
The Frame source does not contain the CRLF. It's added when Mif2Go processes the paragraph (presumably to provide breaks in the HTML, so as not to overwhelm the browser with a long line). On Mon 17/11/08 8:41 AM , "Art Campbell" art.campbell at gmail.com sent: Have you tried a simple S&R in Fra

Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Art Campbell
Have you tried a simple S&R in Frame? \P and or \p in the Find field usually work to locate the end\beginning of a para You may also be able to select a CR-LF combination, copy it, and Find characters on the clipboard. Art Art Campbell art.campbell at gmail.com "..

Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread JIm Owens
I'm processing the content of a CodeStore. The content contains CRLF. I need to remove the CRLF. Should be simple, right? Just find and remove 0a and 0d, or replace n or r or some combination thereof. I have read the Mif2Go manual and tried everything I can think of,and two days later I am defeat

Re: Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Jim Owens
For "early in the paragraph", please read "early in the topic." Jim Owens wrote: > Thanks. I can't find anything about "CodeSource" in the manual. In the > [HtmlStyles] section, I can assign pre or blockquote to the paragraph > format; this changes the paragraph tag in the output from to , >

Re: Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Jim Owens
Thanks. I can't find anything about "CodeSource" in the manual. In the [HtmlStyles] section, I can assign pre or blockquote to the paragraph format; this changes the paragraph tag in the output from to , for example. If I recall, this would cause the browser to honour any CRLFs in the paragrap

Re: Re: Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Art Campbell
I don't have M2G on this system, so I can't check this, but I'm half-remembering that if you set up the CodeSource to output as either Blockquote, Preformatted, or Code that this won't happen, but I'm not remembering how to turn this off for other formats. Art Art Campbell

Re: Re: Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread JIm Owens
The Frame source does not contain the CRLF. It's added when Mif2Go processes the paragraph (presumably to provide breaks in the HTML, so as not to overwhelm the browser with a long line). On Mon 17/11/08 8:41 AM , "Art Campbell" [EMAIL PROTECTED] sent: Have you tried a simple S&R in Frame? P an

Re: Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread Art Campbell
Have you tried a simple S&R in Frame? \P and or \p in the Find field usually work to locate the end\beginning of a para You may also be able to select a CR-LF combination, copy it, and Find characters on the clipboard. Art Art Campbell [EMAIL PROTECTED] "... In my

Mif2Go: removing CRLF from CodeStore content

2008-11-17 Thread JIm Owens
I'm processing the content of a CodeStore. The content contains CRLF. I need to remove the CRLF. Should be simple, right? Just find and remove 0a and 0d, or replace n or r or some combination thereof. I have read the Mif2Go manual and tried everything I can think of,and two days later I am defeat